Skip to content

Commit

Permalink
HBASE-22828 Log a region close journal (#471)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Stack <stack@apache.org>
Signed-off-by: Reid Chan <reidchan@apache.org>
  • Loading branch information
apurtell committed Aug 13, 2019
1 parent 96ff5f2 commit 73a48b7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1486,13 +1486,16 @@ public Map<byte[], List<StoreFile>> close(final boolean abort) throws IOExceptio
MonitoredTask status = TaskMonitor.get().createStatus(
"Closing region " + this +
(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 73a48b7

Please sign in to comment.