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 02:40:11 UTC

[hbase] branch master updated: HBASE-27716 Fix TestWALOpenAfterDNRollingStart (#5102)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new c8bee238fc5 HBASE-27716 Fix TestWALOpenAfterDNRollingStart (#5102)
c8bee238fc5 is described below

commit c8bee238fc51b82215cea844030a7a4dc9f6499c
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>
---
 .../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 b4810bcbbae..661d020d0e8 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();
     }