You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by an...@apache.org on 2021/05/26 09:01:43 UTC

[hbase] branch branch-1 updated: HBASE-25898 RS getting aborted due to NPE in Replication WALEntryStream (#3300)

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

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


The following commit(s) were added to refs/heads/branch-1 by this push:
     new 3f8aa4c  HBASE-25898 RS getting aborted due to NPE in Replication WALEntryStream (#3300)
3f8aa4c is described below

commit 3f8aa4c7e82502fe3f9e77590c3b742fca812f4f
Author: Anoop Sam John <an...@gmail.com>
AuthorDate: Wed May 26 14:31:17 2021 +0530

    HBASE-25898 RS getting aborted due to NPE in Replication WALEntryStream (#3300)
    
    Signed-off-by: Viraj Jasani <vj...@apache.org>
    Signed-off-by: Rushabh Shah <sh...@gmail.com>
    Signed-off-by: Aman Poonia <am...@gmail.com>
---
 .../apache/hadoop/hbase/replication/regionserver/WALEntryStream.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 3995c00..fbca0e6 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
@@ -356,8 +356,8 @@ public class WALEntryStream implements Iterator<Entry>, Closeable, Iterable<Entr
       handleFileNotFound(path, (FileNotFoundException)ioe);
     } catch (LeaseNotRecoveredException lnre) {
       // HBASE-15019 the WAL was not closed due to some hiccup.
-      LOG.warn("Try to recover the WAL lease " + currentPath, lnre);
-      recoverLease(conf, currentPath);
+      LOG.warn("Try to recover the WAL lease " + path, lnre);
+      recoverLease(conf, path);
       reader = null;
     } catch (NullPointerException npe) {
       // Workaround for race condition in HDFS-4380