HBASE-22828 Log a region close journal (#471)
Signed-off-by: Michael Stack <stack@apache.org> Signed-off-by: Reid Chan <reidchan@apache.org>
This commit is contained in:
parent
e69af5affe
commit
27ed2ac071
|
@ -1545,13 +1545,16 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
|
||||||
MonitoredTask status = TaskMonitor.get().createStatus(
|
MonitoredTask status = TaskMonitor.get().createStatus(
|
||||||
"Closing region " + this.getRegionInfo().getEncodedName() +
|
"Closing region " + this.getRegionInfo().getEncodedName() +
|
||||||
(abort ? " due to abort" : ""));
|
(abort ? " due to abort" : ""));
|
||||||
|
status.enableStatusJournal(false);
|
||||||
status.setStatus("Waiting for close lock");
|
status.setStatus("Waiting for close lock");
|
||||||
try {
|
try {
|
||||||
synchronized (closeLock) {
|
synchronized (closeLock) {
|
||||||
return doClose(abort, status);
|
return doClose(abort, status);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Region close journal:\n" + status.prettyPrintJournal());
|
||||||
|
}
|
||||||
status.cleanup();
|
status.cleanup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue