Skip to content

Commit

Permalink
Fix BlobStoreIncrementalityIT.testRecordCorrectSegmentCountsWithBackg…
Browse files Browse the repository at this point in the history
…roundMerges (#89416)

Create more segments here to make sure the background merge always merges.
With just 3 segments and a max-segments-per-tier of 2 we don't have the guarantee
that a merge will actually run and hence the test will fail when waiting for the background
merge.

closes #89412
  • Loading branch information
original-brownbear authored Aug 17, 2022
1 parent 837a8d7 commit 2a08258
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void testRecordCorrectSegmentCountsWithBackgroundMerges() throws Exceptio

// create a situation where we temporarily have a bunch of segments until the merges can catch up
long id = 0;
final int rounds = scaledRandomIntBetween(3, 5);
final int rounds = scaledRandomIntBetween(5, 9);
for (int i = 0; i < rounds; ++i) {
final int numDocs = scaledRandomIntBetween(100, 1000);
BulkRequestBuilder request = client().prepareBulk().setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE);
Expand Down

0 comments on commit 2a08258

Please sign in to comment.