You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2023/03/15 03:06:13 UTC

[hbase] 02/02: HBASE-27716 Fix TestWALOpenAfterDNRollingStart (#5102)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit b5dcd48c64366963376c0b50c6e4011e8769ebdb
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Wed Mar 15 10:40:03 2023 +0800

    HBASE-27716 Fix TestWALOpenAfterDNRollingStart (#5102)
    
    Signed-off-by: Guanghao Zhang <zg...@apache.org>
    (cherry picked from commit c8bee238fc51b82215cea844030a7a4dc9f6499c)
---
 .../org/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 096ebe020a9..1fbe8f24656 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 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();
     }