Skip to content

Commit 65d8653

Browse files
committed
HBASE-21905 (addendum): Address compaction races in TestFIFOCompactionPolicy (apache#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 89dc088 commit 65d8653

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
@@ -122,6 +122,11 @@ public static void setEnvironmentEdge() throws Exception {
122122
EnvironmentEdgeManager.injectEdge(ee);
123123
Configuration conf = TEST_UTIL.getConfiguration();
124124
conf.setInt(HStore.BLOCKING_STOREFILES_KEY, 10000);
125+
// Expired store file deletion during compaction optimization interferes with the FIFO
126+
// compaction policy. The race causes changes to in-flight-compaction files resulting in a
127+
// non-deterministic number of files selected by compaction policy. Disables that optimization
128+
// for this test run.
129+
conf.setBoolean("hbase.store.delete.expired.storefile", false);
125130
TEST_UTIL.startMiniCluster(1);
126131
}
127132

0 commit comments

Comments
 (0)