From c8bee238fc51b82215cea844030a7a4dc9f6499c Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Wed, 15 Mar 2023 10:40:03 +0800 Subject: [PATCH] HBASE-27716 Fix TestWALOpenAfterDNRollingStart (#5102) Signed-off-by: Guanghao Zhang --- .../apache/hadoop/hbase/wal/TestWALOpenAfterDNRollingStart.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestWALOpenAfterDNRollingStart.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestWALOpenAfterDNRollingStart.java index b4810bcbbae3..661d020d0e8f 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestWALOpenAfterDNRollingStart.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/wal/TestWALOpenAfterDNRollingStart.java @@ -121,7 +121,7 @@ public void test() throws Exception { 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(); }