Skip to content

Commit

Permalink
Fix ConcurrentSearchTasksIT
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Kale <kalsac@amazon.com>
  • Loading branch information
Sachin Kale committed Sep 2, 2023
1 parent 907ca18 commit 9bea58d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.opensearch.index.query.QueryBuilders;
import org.opensearch.tasks.TaskInfo;
import org.hamcrest.MatcherAssert;
import org.opensearch.test.junit.annotations.TestIssueLogging;

import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -63,9 +64,12 @@ private int getSegmentCount(String indexName) {
@Override
protected Settings featureFlagSettings() {
Settings.Builder featureSettings = Settings.builder();
featureSettings.put(super.featureFlagSettings());
for (Setting builtInFlag : FeatureFlagSettings.BUILT_IN_FEATURE_FLAGS) {
featureSettings.put(builtInFlag.getKey(), builtInFlag.getDefaultRaw(Settings.EMPTY));
}
featureSettings.put(FeatureFlags.REMOTE_STORE, "true");
featureSettings.put(FeatureFlags.SEGMENT_REPLICATION_EXPERIMENTAL, "true");
featureSettings.put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, true);
return featureSettings.build();
}
Expand Down

0 comments on commit 9bea58d

Please sign in to comment.