Skip to content

Commit 18c5abe

Browse files
committed
HBASE-22828 Log a region close journal (#471)
Signed-off-by: Michael Stack <[email protected]> Signed-off-by: Reid Chan <[email protected]>
1 parent 8e5e868 commit 18c5abe

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
@@ -1391,13 +1391,16 @@ public Map<byte[], List<StoreFile>> close(final boolean abort) throws IOExceptio
13911391
MonitoredTask status = TaskMonitor.get().createStatus(
13921392
"Closing region " + this +
13931393
(abort ? " due to abort" : ""));
1394-
1394+
status.enableStatusJournal(false);
13951395
status.setStatus("Waiting for close lock");
13961396
try {
13971397
synchronized (closeLock) {
13981398
return doClose(abort, status);
13991399
}
14001400
} finally {
1401+
if (LOG.isDebugEnabled()) {
1402+
LOG.debug("Region close journal:\n" + status.prettyPrintJournal());
1403+
}
14011404
status.cleanup();
14021405
}
14031406
}

0 commit comments

Comments
 (0)