hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramkris...@apache.org
Subject [hbase] branch branch-2.3 updated: Cherry pick HBASE-24713 RS startup with FSHLog throws NPE after HBASE-21751 (#2133)
Date Mon, 03 Aug 2020 04:39:19 GMT
This is an automated email from the ASF dual-hosted git repository.

ramkrishna 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 94a03d7  Cherry pick HBASE-24713 RS startup with FSHLog throws NPE after HBASE-21751
(#2133)
94a03d7 is described below

commit 94a03d7ae2ba2986fd359720704b88808d50f623
Author: gkanade <gaurav.kanade@gmail.com>
AuthorDate: Mon Aug 3 10:09:03 2020 +0530

    Cherry pick HBASE-24713 RS startup with FSHLog throws NPE after HBASE-21751 (#2133)
    
    Authored-by: Gaurav Kanade <gkanade@microsoft.com>
    Signed-off-by: Anoop Sam John <anoopsamjohn@apache.org>
    Signed-off-by: Viraj Jasani <vjasani@apache.org>
    Signed-off-by: Ramkrishna <ramkrishna@apache.org>
---
 .../src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
index 902d354..290d4cd 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/FSHLog.java
@@ -318,7 +318,7 @@ public class FSHLog extends AbstractFSWAL<Writer> {
     SyncFuture syncFuture = null;
     SafePointZigZagLatch zigzagLatch = null;
     long sequence = -1L;
-    if (this.ringBufferEventHandler != null) {
+    if (this.writer != null && this.ringBufferEventHandler != null) {
       // Get sequence first to avoid dead lock when ring buffer is full
       // Considering below sequence
       // 1. replaceWriter is called and zigzagLatch is initialized


Mime
View raw message