hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-17912 - Avoid major compactions on region server startup
Date Tue, 18 Apr 2017 02:44:26 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 cb2f2a7d1 -> a26de9b51


HBASE-17912 - Avoid major compactions on region server startup

Signed-off-by: tedyu <yuzhihong@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/a26de9b5
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a26de9b5
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a26de9b5

Branch: refs/heads/branch-1
Commit: a26de9b51e5adb461c20b197235b5777300776a9
Parents: cb2f2a7
Author: gjacoby <gjacoby@salesforce.com>
Authored: Mon Apr 17 16:08:25 2017 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Mon Apr 17 19:43:03 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/regionserver/HRegionServer.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a26de9b5/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
index 3544757..6a93606 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
@@ -1580,7 +1580,9 @@ public class HRegionServer extends HasThread implements
     private final HRegionServer instance;
     private final int majorCompactPriority;
     private final static int DEFAULT_PRIORITY = Integer.MAX_VALUE;
-    private long iteration = 0;
+    //Iteration is 1-based rather than 0-based so we don't check for compaction
+    // immediately upon region server startup
+    private long iteration = 1;
 
     CompactionChecker(final HRegionServer h, final int sleepTime,
         final Stoppable stopper) {


Mime
View raw message