Skip to content

Commit

Permalink
CCR/TEST: Enable soft-deletes in ShardChangesActionTests
Browse files Browse the repository at this point in the history
Relates #36446
  • Loading branch information
dnhatn committed Dec 11, 2018
1 parent f2e18a6 commit f237014
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit f237014

Please sign in to comment.