From a6db0ea9087619d8b9bca2dfdd11a921012990de Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Mon, 10 Jul 2017 11:06:57 +0200 Subject: [PATCH] Run Translog retention yaml tests with no replicas Initializing replicas change the translog retention logic and confuses the test. Switch to the solution suggested in https://github.com/elastic/elasticsearch/issues/25623, if implemented --- .../rest-api-spec/test/indices.stats/20_translog.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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 df0125187d6..be534364d4c 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,6 +3,12 @@ setup: - do: indices.create: index: test + 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":