HBASE-3185 User-triggered compactions are triggering splits

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1029939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Gray 2010-11-02 02:07:20 +00:00
parent 8387a5b18f
commit b9e98b72a3
2 changed files with 1 additions and 2 deletions

View File

@ -639,6 +639,7 @@ Release 0.21.0 - Unreleased
or build HBase
HBASE-3179 Enable ReplicationLogsCleaner only if replication is,
and fix its test
HBASE-3185 User-triggered compactions are triggering splits!
IMPROVEMENTS

View File

@ -2035,8 +2035,6 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
public void compactRegion(HRegionInfo regionInfo, boolean major)
throws NotServingRegionException, IOException {
HRegion region = getRegion(regionInfo.getRegionName());
region.flushcache();
region.shouldSplit(true);
compactSplitThread.requestCompaction(region, major, "User-triggered "
+ (major ? "major " : "") + "compaction",
CompactSplitThread.PRIORITY_USER);