HBASE-19593 Possible NPE if wal is closed during waledit append.(Rajeshabbu)

This commit is contained in:
Rajeshbabu Chintaguntla 2017-12-22 17:20:45 +05:30
parent 448ba3a78f
commit c0598dcb10
1 changed files with 1 additions and 1 deletions

View File

@ -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;