This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch branch-1.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-1.4 by this push:
new 2e1a3bb HBASE-22828 Log a region close journal (#471)
2e1a3bb is described below
commit 2e1a3bb50bac98ff0ef23db73d1bed96f5b513d4
Author: Andrew Purtell <[email protected]>
AuthorDate: Tue Aug 13 15:42:41 2019 -0700
HBASE-22828 Log a region close journal (#471)
Signed-off-by: Michael Stack <[email protected]>
Signed-off-by: Reid Chan <[email protected]>
---
.../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 d383ec8..a458f39 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
@@ -1476,13 +1476,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();
}
}