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();
|
writeEntry = walKey.getWriteEntry();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
if (walKey != null) {
|
if (walKey != null && walKey.getWriteEntry() != null) {
|
||||||
mvcc.complete(walKey.getWriteEntry());
|
mvcc.complete(walKey.getWriteEntry());
|
||||||
}
|
}
|
||||||
throw ioe;
|
throw ioe;
|
||||||
|
|
Loading…
Reference in New Issue