Skip to content

Commit 3db8101

Browse files
authored
Fix ReindexNodeShutdownIT#testReindexWithShutdown (#119390)
The settings with the maximum re-indexing timeout should be actually applied to the coordination node. Resolve #118040
1 parent 8a821f0 commit 3db8101

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

modules/reindex/src/internalClusterTest/java/org/elasticsearch/index/reindex/ReindexNodeShutdownIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public void testReindexWithShutdown() throws Exception {
5959
final String dataNodeName = internalCluster().startDataOnlyNode();
6060

6161
/* Maximum time to wait for reindexing tasks to complete before shutdown */
62-
final Settings COORD_SETTINGS = Settings.builder()
62+
final Settings coordSettings = Settings.builder()
6363
.put(MAXIMUM_REINDEXING_TIMEOUT_SETTING.getKey(), TimeValue.timeValueSeconds(60))
6464
.build();
65-
final String coordNodeName = internalCluster().startCoordinatingOnlyNode(Settings.EMPTY);
65+
final String coordNodeName = internalCluster().startCoordinatingOnlyNode(coordSettings);
6666

6767
ensureStableCluster(3);
6868

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ tests:
169169
- class: org.elasticsearch.xpack.restart.QueryBuilderBWCIT
170170
method: testQueryBuilderBWC {p0=UPGRADED}
171171
issue: https://github.com/elastic/elasticsearch/issues/116989
172-
- class: org.elasticsearch.index.reindex.ReindexNodeShutdownIT
173-
method: testReindexWithShutdown
174-
issue: https://github.com/elastic/elasticsearch/issues/118040
175172
- class: org.elasticsearch.xpack.remotecluster.CrossClusterEsqlRCS2UnavailableRemotesIT
176173
method: testEsqlRcs2UnavailableRemoteScenarios
177174
issue: https://github.com/elastic/elasticsearch/issues/117419

0 commit comments

Comments
 (0)