Skip to content

Commit de88280

Browse files
Speed up Slow FlushIT (#74013)
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 fc1ea9c commit de88280

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
@@ -99,8 +99,13 @@ public void testRejectIllegalFlushParameters() {
9999

100100
public void testFlushOnInactive() throws Exception {
101101
final String indexName = "flush_on_inactive";
102-
List<String> dataNodes = internalCluster().startDataOnlyNodes(2, Settings.builder()
103-
.put(IndexingMemoryController.SHARD_INACTIVE_TIME_SETTING.getKey(), randomTimeValue(10, 1000, "ms")).build());
102+
List<String> dataNodes = internalCluster().startDataOnlyNodes(
103+
2,
104+
Settings.builder()
105+
.put(IndexingMemoryController.SHARD_INACTIVE_TIME_SETTING.getKey(), randomTimeValue(10, 1000, "ms"))
106+
.put(IndexingMemoryController.SHARD_MEMORY_INTERVAL_TIME_SETTING.getKey(), randomTimeValue(10, 1000, "ms"))
107+
.build()
108+
);
104109
assertAcked(client().admin().indices().prepareCreate(indexName).setSettings(Settings.builder()
105110
.put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, 1).put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, 1)
106111
.put(IndexSettings.INDEX_TRANSLOG_SYNC_INTERVAL_SETTING.getKey(), randomTimeValue(200, 500, "ms"))

0 commit comments

Comments
 (0)