Skip to content

Commit ad3af73

Browse files
committed
Revert "Remove workaround in translog rest test (#27530)"
Even though the option wait_for_no_initializing_shards is backported to 6.2, we should not remove this workaround on 6.2 because this rest test will be run in a mixed cluster in which the wait_for_no_initializing_shards may not be available. This reverts commit 7aea8b5.
1 parent 7aea8b5 commit ad3af73

File tree

1 file changed

+6
-3
lines changed
  • rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats

1 file changed

+6
-3
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ setup:
33
- do:
44
indices.create:
55
index: test
6-
- do:
7-
cluster.health:
8-
wait_for_no_initializing_shards: true
6+
body:
7+
settings:
8+
index:
9+
# initializing replicas maintain the translog causing the test to fail.
10+
# remove once https://github.com/elastic/elasticsearch/issues/25623 is fixed.
11+
number_of_replicas: 0
912

1013
---
1114
"Translog retention":

0 commit comments

Comments
 (0)