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:48 UTC

[hbase] branch branch-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-1
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-1 by this push:
     new 73a48b7  HBASE-22828 Log a region close journal (#471)
73a48b7 is described below

commit 73a48b7b74c027cbf708402e5f7d62316c3f1efd
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 998ae85..c1c101a 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
@@ -1486,13 +1486,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();
     }
   }