Skip to content

Commit 28a3b72

Browse files
Fix BlobStoreIncrementalityIT.testRecordCorrectSegmentCountsWithBackgroundMerges (#89416) (#89423)
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
1 parent 9eefc03 commit 28a3b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/internalClusterTest/java/org/elasticsearch/snapshots/BlobStoreIncrementalityIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public void testRecordCorrectSegmentCountsWithBackgroundMerges() throws Exceptio
197197

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

0 commit comments

Comments
 (0)