diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java index ed6d80e1538..0b483d9d30f 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java @@ -171,6 +171,8 @@ public class CompactionTool extends Configured implements Tool { } } } while (store.needsCompaction() && !compactOnce); + //We need to close the store properly, to make sure it will archive compacted files + store.close(); } /**