From 8528e8287540b8c33e89458a6c4ec7fb55e291ef Mon Sep 17 00:00:00 2001 From: tedyu Date: Sat, 25 Feb 2017 16:33:34 -0800 Subject: [PATCH] HBASE-17674 Major compaction may be cancelled in CompactionChecker (Guangxu Cheng) --- .../java/org/apache/hadoop/hbase/regionserver/HRegionServer.java | 1 + 1 file changed, 1 insertion(+) 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 187fde0f7aa..39b6380bab1 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 @@ -1610,6 +1610,7 @@ public class HRegionServer extends HasThread implements this.instance.compactSplitThread.requestSystemCompaction(r, s, getName() + " requests compaction"); } else if (s.isMajorCompaction()) { + s.triggerMajorCompaction(); if (majorCompactPriority == DEFAULT_PRIORITY || majorCompactPriority > ((HRegion)r).getCompactPriority()) { this.instance.compactSplitThread.requestCompaction(r, s, getName()