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/04/18 01:55:38 UTC
[hbase] 02/02: HBASE-21959 - CompactionTool should close the store
it uses for compacting files, in order to properly archive compacted files.
This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch branch-1
in repository https://gitbox.apache.org/repos/asf/hbase.git
commit 539de1cae922e6ce498993b9f5409f5edb90d382
Author: Wellington Chevreuil <we...@gmail.com>
AuthorDate: Wed Apr 17 18:54:34 2019 -0700
HBASE-21959 - CompactionTool should close the store it uses for compacting files, in order to properly archive compacted files.
Reapply without unit test
Change-Id: If852529e79274a77eb08cac13936f02776232608
Signed-off-by: Xu Cang <xu...@apache.org>
Amending-Author: Andrew Purtell <ap...@apache.org>
---
.../main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java | 2 ++
1 file changed, 2 insertions(+)
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 ed6d80e..0b483d9 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();
}
/**