From c1a6e8179c1dd7edf3843b14efe8a313493bb125 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Fri, 30 Mar 2018 23:24:59 -0400 Subject: [PATCH] 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.3 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 7aea8b50f3993624faa09e5d1e28a5cadb4bea72. --- .../rest-api-spec/test/indices.stats/20_translog.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml index 5c9ec3e597ad9..95398de537069 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/20_translog.yml @@ -3,9 +3,12 @@ setup: - do: indices.create: index: test - - do: - cluster.health: - wait_for_no_initializing_shards: true + body: + settings: + index: + # initializing replicas maintain the translog causing the test to fail. + # remove once https://github.com/elastic/elasticsearch/issues/25623 is fixed. + number_of_replicas: 0 --- "Translog retention":