HBASE-27716 Fix TestWALOpenAfterDNRollingStart (#5102)

Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
Duo Zhang 2023-03-15 10:40:03 +08:00 committed by GitHub
parent ce7b1d4e4f
commit c8bee238fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public class TestWALOpenAfterDNRollingStart {
currentFile = new Path(oldLogDir, currentFile.getName());
}
// if the log is not rolled, then we can never open this wal forever.
try (WALStreamReader reader = WALFactory.createStreamReader(TEST_UTIL.getTestFileSystem(),
try (WALStreamReader reader = NoEOFWALStreamReader.create(TEST_UTIL.getTestFileSystem(),
currentFile, TEST_UTIL.getConfiguration())) {
reader.next();
}