Skip to content

Commit 26a66f0

Browse files
authored
Remove Concurrent Segment Search feature flags for feature launch (opensearch-project#12074)
Signed-off-by: Jay Deng <[email protected]>
1 parent 24b0cc9 commit 26a66f0

File tree

168 files changed

+150
-1101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+150
-1101
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
136136
- Add `org.opensearch.rest.MethodHandlers` and `RestController#getAllHandlers` ([11876](https://github.com/opensearch-project/OpenSearch/pull/11876))
137137
- New DateTime format for RFC3339 compatible date fields ([#11465](https://github.com/opensearch-project/OpenSearch/pull/11465))
138138
- Add support for Google Application Default Credentials in repository-gcs ([#8394](https://github.com/opensearch-project/OpenSearch/pull/8394))
139+
- Remove concurrent segment search feature flag for GA launch ([#12074](https://github.com/opensearch-project/OpenSearch/pull/12074))
139140

140141
### Dependencies
141142
- Bumps jetty version to 9.4.52.v20230823 to fix GMS-2023-1857 ([#9822](https://github.com/opensearch-project/OpenSearch/pull/9822))

distribution/src/config/opensearch.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,6 @@ ${path.logs}
117117
#opensearch.experimental.feature.extensions.enabled: false
118118
#
119119
#
120-
# Gates the concurrent segment search feature. This feature enables concurrent segment search in a separate
121-
# index searcher threadpool.
122-
#
123-
#opensearch.experimental.feature.concurrent_segment_search.enabled: false
124-
#
125-
#
126120
# Gates the optimization of datetime formatters caching along with change in default datetime formatter
127121
# Once there is no observed impact on performance, this feature flag can be removed.
128122
#

modules/analysis-common/src/internalClusterTest/java/org/opensearch/analysis/common/QueryStringWithAnalyzersIT.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737
import org.opensearch.action.search.SearchResponse;
3838
import org.opensearch.common.settings.Settings;
39-
import org.opensearch.common.util.FeatureFlags;
4039
import org.opensearch.index.query.Operator;
4140
import org.opensearch.plugins.Plugin;
4241
import org.opensearch.test.ParameterizedStaticSettingsOpenSearchIntegTestCase;
@@ -63,11 +62,6 @@ public static Collection<Object[]> parameters() {
6362
);
6463
}
6564

66-
@Override
67-
protected Settings featureFlagSettings() {
68-
return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, "true").build();
69-
}
70-
7165
@Override
7266
protected Collection<Class<? extends Plugin>> nodePlugins() {
7367
return Arrays.asList(CommonAnalysisModulePlugin.class);

modules/analysis-common/src/test/java/org/opensearch/analysis/common/HighlighterWithAnalyzersTests.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737
import org.opensearch.action.search.SearchResponse;
3838
import org.opensearch.common.settings.Settings;
39-
import org.opensearch.common.util.FeatureFlags;
4039
import org.opensearch.common.xcontent.XContentFactory;
4140
import org.opensearch.core.xcontent.XContentBuilder;
4241
import org.opensearch.index.IndexSettings;
@@ -82,11 +81,6 @@ public static Collection<Object[]> parameters() {
8281
);
8382
}
8483

85-
@Override
86-
protected Settings featureFlagSettings() {
87-
return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, "true").build();
88-
}
89-
9084
@Override
9185
protected Collection<Class<? extends Plugin>> nodePlugins() {
9286
return Arrays.asList(CommonAnalysisModulePlugin.class);

modules/geo/src/internalClusterTest/java/org/opensearch/geo/GeoModulePluginIntegTestCase.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1212

1313
import org.opensearch.common.settings.Settings;
14-
import org.opensearch.common.util.FeatureFlags;
1514
import org.opensearch.geometry.utils.StandardValidator;
1615
import org.opensearch.geometry.utils.WellKnownText;
1716
import org.opensearch.index.mapper.GeoShapeFieldMapper;
@@ -47,11 +46,6 @@ public static Collection<Object[]> parameters() {
4746
);
4847
}
4948

50-
@Override
51-
protected Settings featureFlagSettings() {
52-
return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, "true").build();
53-
}
54-
5549
/**
5650
* Returns a collection of plugins that should be loaded on each node for doing the integration tests. As this
5751
* geo plugin is not getting packaged in a zip, we need to load it before the tests run.

modules/lang-expression/src/internalClusterTest/java/org/opensearch/script/expression/MoreExpressionIT.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.opensearch.action.update.UpdateRequestBuilder;
4242
import org.opensearch.common.lucene.search.function.CombineFunction;
4343
import org.opensearch.common.settings.Settings;
44-
import org.opensearch.common.util.FeatureFlags;
4544
import org.opensearch.common.xcontent.XContentFactory;
4645
import org.opensearch.core.xcontent.XContentBuilder;
4746
import org.opensearch.index.query.QueryBuilders;
@@ -94,11 +93,6 @@ public static Collection<Object[]> parameters() {
9493
);
9594
}
9695

97-
@Override
98-
protected Settings featureFlagSettings() {
99-
return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, "true").build();
100-
}
101-
10296
@Override
10397
protected Collection<Class<? extends Plugin>> nodePlugins() {
10498
return Collections.singleton(ExpressionModulePlugin.class);

modules/lang-expression/src/internalClusterTest/java/org/opensearch/script/expression/StoredExpressionIT.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
3636

3737
import org.opensearch.common.settings.Settings;
38-
import org.opensearch.common.util.FeatureFlags;
3938
import org.opensearch.core.common.bytes.BytesArray;
4039
import org.opensearch.core.xcontent.MediaTypeRegistry;
4140
import org.opensearch.plugins.Plugin;
@@ -68,11 +67,6 @@ public static Collection<Object[]> parameters() {
6867
);
6968
}
7069

71-
@Override
72-
protected Settings featureFlagSettings() {
73-
return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, "true").build();
74-
}
75-
7670
@Override
7771
protected Settings nodeSettings(int nodeOrdinal) {
7872
Settings.Builder builder = Settings.builder().put(super.nodeSettings(nodeOrdinal));

modules/lang-mustache/src/internalClusterTest/java/org/opensearch/script/mustache/MultiSearchTemplateIT.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import org.opensearch.action.index.IndexRequestBuilder;
3838
import org.opensearch.action.search.SearchRequest;
3939
import org.opensearch.common.settings.Settings;
40-
import org.opensearch.common.util.FeatureFlags;
4140
import org.opensearch.index.IndexNotFoundException;
4241
import org.opensearch.plugins.Plugin;
4342
import org.opensearch.script.ScriptType;
@@ -72,11 +71,6 @@ public static Collection<Object[]> parameters() {
7271
);
7372
}
7473

75-
@Override
76-
protected Settings featureFlagSettings() {
77-
return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, "true").build();
78-
}
79-
8074
@Override
8175
protected Collection<Class<? extends Plugin>> nodePlugins() {
8276
return Collections.singleton(MustacheModulePlugin.class);

modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ChildrenIT.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.opensearch.client.Requests;
4242
import org.opensearch.cluster.metadata.IndexMetadata;
4343
import org.opensearch.common.settings.Settings;
44-
import org.opensearch.common.util.FeatureFlags;
4544
import org.opensearch.search.SearchHit;
4645
import org.opensearch.search.aggregations.AggregationBuilders;
4746
import org.opensearch.search.aggregations.InternalAggregation;
@@ -89,11 +88,6 @@ public static Collection<Object[]> parameters() {
8988
);
9089
}
9190

92-
@Override
93-
protected Settings featureFlagSettings() {
94-
return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, "true").build();
95-
}
96-
9791
public void testChildrenAggs() throws Exception {
9892
SearchResponse searchResponse = client().prepareSearch("test")
9993
.setQuery(matchQuery("randomized", true))

modules/parent-join/src/internalClusterTest/java/org/opensearch/join/aggregations/ParentIT.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import org.opensearch.action.search.SearchRequestBuilder;
3838
import org.opensearch.action.search.SearchResponse;
3939
import org.opensearch.common.settings.Settings;
40-
import org.opensearch.common.util.FeatureFlags;
4140
import org.opensearch.search.aggregations.Aggregation;
4241
import org.opensearch.search.aggregations.bucket.MultiBucketsAggregation;
4342
import org.opensearch.search.aggregations.bucket.terms.Terms;
@@ -76,11 +75,6 @@ public static Collection<Object[]> parameters() {
7675
);
7776
}
7877

79-
@Override
80-
protected Settings featureFlagSettings() {
81-
return Settings.builder().put(super.featureFlagSettings()).put(FeatureFlags.CONCURRENT_SEGMENT_SEARCH, "true").build();
82-
}
83-
8478
public void testSimpleParentAgg() throws Exception {
8579
final SearchRequestBuilder searchRequest = client().prepareSearch("test")
8680
.setSize(10000)

0 commit comments

Comments
 (0)