|
27 | 27 | import org.elasticsearch.common.settings.Settings; |
28 | 28 | import org.elasticsearch.common.xcontent.XContentType; |
29 | 29 | import org.elasticsearch.index.IndexService; |
| 30 | +import org.elasticsearch.index.IndexSettings; |
30 | 31 | import org.elasticsearch.indices.IndexingMemoryController; |
31 | 32 | import org.elasticsearch.plugins.Plugin; |
32 | 33 | import org.elasticsearch.test.ESIntegTestCase; |
@@ -107,13 +108,13 @@ public void testRejectIllegalFlushParameters() { |
107 | 108 | .actionGet().getShardFailures(), emptyArray()); |
108 | 109 | } |
109 | 110 |
|
110 | | - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/52251") |
111 | 111 | public void testFlushOnInactive() throws Exception { |
112 | 112 | final String indexName = "flush_on_inactive"; |
113 | 113 | List<String> dataNodes = internalCluster().startDataOnlyNodes(2, Settings.builder() |
114 | 114 | .put(IndexingMemoryController.SHARD_INACTIVE_TIME_SETTING.getKey(), randomTimeValue(10, 1000, "ms")).build()); |
115 | 115 | assertAcked(client().admin().indices().prepareCreate(indexName).setSettings(Settings.builder() |
116 | 116 | .put(IndexMetaData.SETTING_NUMBER_OF_SHARDS, 1).put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 1) |
| 117 | + .put(IndexSettings.INDEX_TRANSLOG_SYNC_INTERVAL_SETTING.getKey(), randomTimeValue(200, 500, "ms")) |
117 | 118 | .put(IndexService.GLOBAL_CHECKPOINT_SYNC_INTERVAL_SETTING.getKey(), randomTimeValue(50, 200, "ms")) |
118 | 119 | .put("index.routing.allocation.include._name", String.join(",", dataNodes)) |
119 | 120 | .build())); |
|
0 commit comments