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

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


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

commit 3233f6730f59c3c9f700f493329af62d41058b00
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 27e08e5..5ee47e6 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();
     }
   }