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:06:49 UTC
[hbase] branch branch-1.3 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-1.3
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-1.3 by this push:
new 18c5abe HBASE-22828 Log a region close journal (#471)
18c5abe is described below
commit 18c5abe43ca476f58aab6dde8c8cb202363e5752
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 d202721..33e953f 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
@@ -1391,13 +1391,16 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
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();
}
}