Skip to content

Commit 539de1c

Browse files
wchevreuilapurtell
authored andcommitted
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 <[email protected]> Amending-Author: Andrew Purtell <[email protected]>
1 parent 46e0e88 commit 539de1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ private void compactStoreFiles(final Path tableDir, final HTableDescriptor htd,
171171
}
172172
}
173173
} while (store.needsCompaction() && !compactOnce);
174+
//We need to close the store properly, to make sure it will archive compacted files
175+
store.close();
174176
}
175177

176178
/**

0 commit comments

Comments
 (0)