HBASE-11380 HRegion lock object is not being released properly, leading to snapshot failure
This commit is contained in:
parent
092fc71b18
commit
af9e519e00
|
@ -176,15 +176,19 @@ public class TableSnapshotScanner extends AbstractClientScanner {
|
|||
}
|
||||
}
|
||||
|
||||
try {
|
||||
result = currentRegionScanner.next();
|
||||
if (result != null) {
|
||||
return result;
|
||||
} else {
|
||||
}
|
||||
} finally {
|
||||
if (result == null) {
|
||||
currentRegionScanner.close();
|
||||
currentRegionScanner = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
|
|
|
@ -4841,8 +4841,12 @@ public class HRegion implements HeapSize { // , Writable{
|
|||
WALEdit walEdit = new WALEdit();
|
||||
|
||||
// 1. Run pre-process hook
|
||||
try {
|
||||
processor.preProcess(this, walEdit);
|
||||
|
||||
} catch (IOException e) {
|
||||
closeRegionOperation();
|
||||
throw e;
|
||||
}
|
||||
// Short circuit the read only case
|
||||
if (processor.readOnly()) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue