Skip to content

Commit 17ae565

Browse files
Speed up Slow FlushIT (#74013) (#74024)
This test regularly takes almost `10s` because 5s default check interval would cause a long wait until the idle check even runs. This in turn would cause the busy assert to backoff to a long wait, causing this test to generally hold up the build worker it runs on => shorter check interval.
1 parent 70de640 commit 17ae565

File tree

1 file changed

+7
-2
lines changed
  • server/src/internalClusterTest/java/org/elasticsearch/indices/flush

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,13 @@ public void testDoNotRenewSyncedFlushWhenAllSealed() throws Exception {
399399

400400
public void testFlushOnInactive() throws Exception {
401401
final String indexName = "flush_on_inactive";
402-
List<String> dataNodes = internalCluster().startDataOnlyNodes(2, Settings.builder()
403-
.put(IndexingMemoryController.SHARD_INACTIVE_TIME_SETTING.getKey(), randomTimeValue(10, 1000, "ms")).build());
402+
List<String> dataNodes = internalCluster().startDataOnlyNodes(
403+
2,
404+
Settings.builder()
405+
.put(IndexingMemoryController.SHARD_INACTIVE_TIME_SETTING.getKey(), randomTimeValue(10, 1000, "ms"))
406+
.put(IndexingMemoryController.SHARD_MEMORY_INTERVAL_TIME_SETTING.getKey(), randomTimeValue(10, 1000, "ms"))
407+
.build()
408+
);
404409
assertAcked(client().admin().indices().prepareCreate(indexName).setSettings(Settings.builder()
405410
.put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1).put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 1)
406411
.put(IndexSettings.INDEX_TRANSLOG_SYNC_INTERVAL_SETTING.getKey(), randomTimeValue(200, 500, "ms"))

0 commit comments

Comments
 (0)