Skip to content

Commit 73a48b7

Browse files
committed
HBASE-22828 Log a region close journal (#471)
Signed-off-by: Michael Stack <stack@apache.org> Signed-off-by: Reid Chan <reidchan@apache.org>
1 parent 96ff5f2 commit 73a48b7

File tree

1 file changed

+4
-1
lines changed
  • hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver

1 file changed

+4
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,13 +1486,16 @@ public Map<byte[], List<StoreFile>> close(final boolean abort) throws IOExceptio
14861486
MonitoredTask status = TaskMonitor.get().createStatus(
14871487
"Closing region " + this +
14881488
(abort ? " due to abort" : ""));
1489-
1489+
status.enableStatusJournal(false);
14901490
status.setStatus("Waiting for close lock");
14911491
try {
14921492
synchronized (closeLock) {
14931493
return doClose(abort, status);
14941494
}
14951495
} finally {
1496+
if (LOG.isDebugEnabled()) {
1497+
LOG.debug("Region close journal:\n" + status.prettyPrintJournal());
1498+
}
14961499
status.cleanup();
14971500
}
14981501
}

0 commit comments

Comments
 (0)