in ratis-logservice/src/main/java/org/apache/ratis/logservice/impl/ArchiveHdfsLogReader.java [120:135]
private int readLength() throws IOException {
int length;
try {
length = is.readInt();
} catch (EOFException e) {
if (files.size() <= fileCounter) {
LOG.trace("EOF and no more file to read, throwing back", e);
throw e;
} else {
LOG.trace("EOF.. Opening next file: {}!!", files.get(fileCounter).getPath());
openNextFilePath();
length = is.readInt();
}
}
return length;
}