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/10/24 00:17:19 UTC
[hbase] branch master updated: HBASE-23207 Log a region open
journal (#751)
This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new b14ba58 HBASE-23207 Log a region open journal (#751)
b14ba58 is described below
commit b14ba58c5a1cbf6a331dffa145162ccaef46164f
Author: Andrew Purtell <ap...@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 <ac...@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 ccfc69d..59b8502 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
@@ -912,6 +912,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);
@@ -939,6 +940,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();
}
}
@@ -1545,7 +1550,7 @@ 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.enableStatusJournal(true);
status.setStatus("Waiting for close lock");
try {
synchronized (closeLock) {