Skip to content

Commit 6e98615

Browse files
committed
TEST: Avoid deletion in FlushIT
Due to the recent change in LUCENE-8263, a merge can be triggered if the deletion ration is higher than 33%. An in-progress merge can prevent a synced-flush from issuing. This commit avoids deletes by using different docIds. Closes #32436
1 parent 139631c commit 6e98615

File tree

1 file changed

+1
-2
lines changed
  • server/src/test/java/org/elasticsearch/indices/flush

1 file changed

+1
-2
lines changed

server/src/test/java/org/elasticsearch/indices/flush/FlushIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ public void testSyncedFlushSkipOutOfSyncReplicas() throws Exception {
286286
assertThat(fullResult.successfulShards(), equalTo(numberOfReplicas + 1));
287287
}
288288

289-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/32436")
290289
public void testDoNotRenewSyncedFlushWhenAllSealed() throws Exception {
291290
internalCluster().ensureAtLeastNumDataNodes(between(2, 3));
292291
final int numberOfReplicas = internalCluster().numDataNodes() - 1;
@@ -311,7 +310,7 @@ public void testDoNotRenewSyncedFlushWhenAllSealed() throws Exception {
311310
// Shards were updated, renew synced flush.
312311
final int moreDocs = between(1, 10);
313312
for (int i = 0; i < moreDocs; i++) {
314-
index("test", "doc", Integer.toString(i));
313+
index("test", "doc", "more-" + i);
315314
}
316315
final ShardsSyncedFlushResult thirdSeal = SyncedFlushUtil.attemptSyncedFlush(logger, internalCluster(), shardId);
317316
assertThat(thirdSeal.successfulShards(), equalTo(numberOfReplicas + 1));

0 commit comments

Comments
 (0)