From 2a08258224dbdab4e375a17f7a4393395b481f0c Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Wed, 17 Aug 2022 15:13:01 +0200 Subject: [PATCH] Fix BlobStoreIncrementalityIT.testRecordCorrectSegmentCountsWithBackgroundMerges (#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 --- .../org/elasticsearch/snapshots/BlobStoreIncrementalityIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/internalClusterTest/java/org/elasticsearch/snapshots/BlobStoreIncrementalityIT.java b/server/src/internalClusterTest/java/org/elasticsearch/snapshots/BlobStoreIncrementalityIT.java index 4c278aeddb5bf..e3fdb92785503 100644 --- a/server/src/internalClusterTest/java/org/elasticsearch/snapshots/BlobStoreIncrementalityIT.java +++ b/server/src/internalClusterTest/java/org/elasticsearch/snapshots/BlobStoreIncrementalityIT.java @@ -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);