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 e3c0cb9 HBASE-23207 Log a region open journal (#751) e3c0cb9 is described below commit e3c0cb9e92288d392df9a7a248012ed505796143 Author: Andrew Purtell <apurt...@apache.org> AuthorDate: Wed Oct 23 17:17:06 2019 -0700 HBASE-23207 Log a region open journal (#751) Signed-off-by: Abhishek Singh Chouhan <achou...@apache.org> --- .../main/java/org/apache/hadoop/hbase/regionserver/HRegion.java | 7 ++++++- 1 file changed, 6 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 0a3dc3d..e4736ad 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 @@ -879,6 +879,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi } MonitoredTask status = TaskMonitor.get().createStatus("Initializing region " + this); + status.enableStatusJournal(true); long nextSeqId = -1; try { nextSeqId = initializeRegionInternals(reporter, status); @@ -890,6 +891,10 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi status.abort("Exception during region " + getRegionInfo().getRegionNameAsString() + " initialization."); } + if (LOG.isDebugEnabled()) { + LOG.debug("Region open journal:\n" + status.prettyPrintJournal()); + } + status.cleanup(); } } @@ -1478,7 +1483,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi MonitoredTask status = TaskMonitor.get().createStatus( "Closing region " + this + (abort ? " due to abort" : "")); - status.enableStatusJournal(false); + status.enableStatusJournal(true); status.setStatus("Waiting for close lock"); try { synchronized (closeLock) {