HBASE-19593 Possible NPE if wal is closed during waledit append.(Rajeshabbu)
This commit is contained in:
parent
448ba3a78f
commit
c0598dcb10
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue