Skip to content

Commit

Permalink
HBASE-22828 Log a region close journal (apache#471)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Stack <[email protected]>
Signed-off-by: Reid Chan <[email protected]>
  • Loading branch information
apurtell authored and Apache9 committed Sep 20, 2019
1 parent 805cb86 commit 8d2c1b0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1604,13 +1604,16 @@ public Map<byte[], List<HStoreFile>> close(boolean abort) throws IOException {
MonitoredTask status = TaskMonitor.get().createStatus(
"Closing region " + this.getRegionInfo().getEncodedName() +
(abort ? " due to abort" : ""));

status.enableStatusJournal(false);
status.setStatus("Waiting for close lock");
try {
synchronized (closeLock) {
return doClose(abort, status);
}
} finally {
if (LOG.isDebugEnabled()) {
LOG.debug("Region close journal:\n" + status.prettyPrintJournal());
}
status.cleanup();
}
}
Expand Down

0 comments on commit 8d2c1b0

Please sign in to comment.