From 3233f6730f59c3c9f700f493329af62d41058b00 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Tue, 13 Aug 2019 15:42:41 -0700 Subject: [PATCH] HBASE-22828 Log a region close journal (#471) Signed-off-by: Michael Stack Signed-off-by: Reid Chan --- .../java/org/apache/hadoop/hbase/regionserver/HRegion.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java index 27e08e5c03c..5ee47e6d2c5 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java @@ -1533,13 +1533,16 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi 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(); } }