HBASE-19593 Possible NPE if wal is closed during waledit append.(Rajeshabbu)
This commit is contained in:
parent
d4af099e9e
commit
79d4f6c11c
|
@ -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