You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by vj...@apache.org on 2021/02/18 06:28:02 UTC

[hbase] branch branch-2.3 updated: HBASE-25541 : Setting the path to null when we dequeue the current log (#2959)

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

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


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new 1a703f4  HBASE-25541 : Setting the path to null when we dequeue the current log (#2959)
1a703f4 is described below

commit 1a703f48e90b985b00aeee1f1de6c876e60acd68
Author: Sandeep Pal <50...@users.noreply.github.com>
AuthorDate: Wed Feb 17 22:23:52 2021 -0800

    HBASE-25541 : Setting the path to null when we dequeue the current log (#2959)
    
    Signed-off-by: Bharath Vissapragada <bh...@apache.org>
---
 .../org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java
index d2cb6f3..6d381f1 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java
@@ -252,6 +252,7 @@ class WALEntryStream implements Closeable {
     LOG.debug("Reached the end of log {}", currentPath);
     closeReader();
     logQueue.remove();
+    setCurrentPath(null);
     setPosition(0);
     metrics.decrSizeOfLogQueue();
   }