Skip to content

Commit 839ce8e

Browse files
authored
HBASE-21905 (addendum): Address compaction races in TestFIFOCompactionPolicy (#2203)
Looped through the test 100 times and it passes. Without the patch it fails every ~10 runs or so. Signed-off-by: Viraj Jasani <[email protected]> Signed-off-by: Michael Stack <[email protected]>
1 parent 714a6f5 commit 839ce8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/compactions/TestFIFOCompactionPolicy.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ public static void setEnvironmentEdge() throws Exception {
115115
EnvironmentEdgeManager.injectEdge(ee);
116116
Configuration conf = TEST_UTIL.getConfiguration();
117117
conf.setInt(HStore.BLOCKING_STOREFILES_KEY, 10000);
118+
// Expired store file deletion during compaction optimization interferes with the FIFO
119+
// compaction policy. The race causes changes to in-flight-compaction files resulting in a
120+
// non-deterministic number of files selected by compaction policy. Disables that optimization
121+
// for this test run.
122+
conf.setBoolean("hbase.store.delete.expired.storefile", false);
118123
TEST_UTIL.startMiniCluster(1);
119124
}
120125

0 commit comments

Comments
 (0)