From f23701406b6479fa7470685275112d9a310a1c76 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Tue, 11 Dec 2018 15:00:09 -0500 Subject: [PATCH] CCR/TEST: Enable soft-deletes in ShardChangesActionTests Relates #36446 --- .../xpack/ccr/action/ShardChangesActionTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardChangesActionTests.java b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardChangesActionTests.java index 4824ac3c22114..e8b21f05c5c2d 100644 --- a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardChangesActionTests.java +++ b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardChangesActionTests.java @@ -16,6 +16,7 @@ import org.elasticsearch.index.Index; import org.elasticsearch.index.IndexNotFoundException; import org.elasticsearch.index.IndexService; +import org.elasticsearch.index.IndexSettings; import org.elasticsearch.index.shard.IndexShard; import org.elasticsearch.index.shard.IndexShardNotStartedException; import org.elasticsearch.index.shard.ShardId; @@ -48,6 +49,7 @@ public void testGetOperations() throws Exception { final Settings settings = Settings.builder() .put("index.number_of_shards", 1) .put("index.number_of_replicas", 0) + .put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true) .build(); final IndexService indexService = createIndex("index", settings); @@ -130,6 +132,7 @@ public void testGetOperationsExceedByteLimit() throws Exception { final Settings settings = Settings.builder() .put("index.number_of_shards", 1) .put("index.number_of_replicas", 0) + .put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true) .build(); final IndexService indexService = createIndex("index", settings); @@ -160,6 +163,7 @@ public void testGetOperationsAlwaysReturnAtLeastOneOp() throws Exception { final Settings settings = Settings.builder() .put("index.number_of_shards", 1) .put("index.number_of_replicas", 0) + .put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true) .build(); final IndexService indexService = createIndex("index", settings);