You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2019/08/13 23:07:02 UTC
[hbase] branch branch-2.1 updated: HBASE-22828 Log a region close
journal (#471)
This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new e27ef92 HBASE-22828 Log a region close journal (#471)
e27ef92 is described below
commit e27ef92e3fd833ae1e229bfa9bdfc87213358904
Author: Andrew Purtell <ap...@apache.org>
AuthorDate: Tue Aug 13 15:42:41 2019 -0700
HBASE-22828 Log a region close journal (#471)
Signed-off-by: Michael Stack <st...@apache.org>
Signed-off-by: Reid Chan <re...@apache.org>
---
.../src/main/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 7f8326a..8e17dec 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
@@ -1508,13 +1508,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();
}
}