Skip to content

Commit

Permalink
HBASE-21905 (addendum): Address compaction races in TestFIFOCompactio…
Browse files Browse the repository at this point in the history
…nPolicy (#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]>
  • Loading branch information
bharathv authored Aug 6, 2020
1 parent 714a6f5 commit 839ce8e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public static void setEnvironmentEdge() throws Exception {
EnvironmentEdgeManager.injectEdge(ee);
Configuration conf = TEST_UTIL.getConfiguration();
conf.setInt(HStore.BLOCKING_STOREFILES_KEY, 10000);
// Expired store file deletion during compaction optimization interferes with the FIFO
// compaction policy. The race causes changes to in-flight-compaction files resulting in a
// non-deterministic number of files selected by compaction policy. Disables that optimization
// for this test run.
conf.setBoolean("hbase.store.delete.expired.storefile", false);
TEST_UTIL.startMiniCluster(1);
}

Expand Down

0 comments on commit 839ce8e

Please sign in to comment.