From c0598dcb10f2185164548ad8a1fdf1867d6a0b34 Mon Sep 17 00:00:00 2001 From: Rajeshbabu Chintaguntla Date: Fri, 22 Dec 2017 17:20:45 +0530 Subject: [PATCH] HBASE-19593 Possible NPE if wal is closed during waledit append.(Rajeshabbu) --- .../main/java/org/apache/hadoop/hbase/regionserver/HRegion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java index bb01fe84437..6401a8b957e 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java @@ -7585,7 +7585,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi } writeEntry = walKey.getWriteEntry(); } catch (IOException ioe) { - if (walKey != null) { + if (walKey != null && walKey.getWriteEntry() != null) { mvcc.complete(walKey.getWriteEntry()); } throw ioe;