Skip to content

Commit b6bbcc4

Browse files
committed
CCR/TEST: Enable soft-deletes in ShardChangesActionTests
Relates #36446
1 parent beeaba5 commit b6bbcc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardChangesActionTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.elasticsearch.index.Index;
1717
import org.elasticsearch.index.IndexNotFoundException;
1818
import org.elasticsearch.index.IndexService;
19+
import org.elasticsearch.index.IndexSettings;
1920
import org.elasticsearch.index.shard.IndexShard;
2021
import org.elasticsearch.index.shard.IndexShardNotStartedException;
2122
import org.elasticsearch.index.shard.ShardId;
@@ -48,6 +49,7 @@ public void testGetOperations() throws Exception {
4849
final Settings settings = Settings.builder()
4950
.put("index.number_of_shards", 1)
5051
.put("index.number_of_replicas", 0)
52+
.put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true)
5153
.build();
5254
final IndexService indexService = createIndex("index", settings);
5355

@@ -130,6 +132,7 @@ public void testGetOperationsExceedByteLimit() throws Exception {
130132
final Settings settings = Settings.builder()
131133
.put("index.number_of_shards", 1)
132134
.put("index.number_of_replicas", 0)
135+
.put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true)
133136
.build();
134137
final IndexService indexService = createIndex("index", settings);
135138

@@ -160,6 +163,7 @@ public void testGetOperationsAlwaysReturnAtLeastOneOp() throws Exception {
160163
final Settings settings = Settings.builder()
161164
.put("index.number_of_shards", 1)
162165
.put("index.number_of_replicas", 0)
166+
.put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true)
163167
.build();
164168
final IndexService indexService = createIndex("index", settings);
165169

0 commit comments

Comments
 (0)