Skip to content

Commit 0fe220a

Browse files
authored
Hide new test behind a feature (elastic#112301)
1 parent 67d2380 commit 0fe220a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ tests:
160160
- class: org.elasticsearch.xpack.ml.integration.MlJobIT
161161
method: testDeleteJobAsync
162162
issue: https://github.com/elastic/elasticsearch/issues/112212
163-
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
164-
method: test {p0=indices.create/20_synthetic_source/stored field under object with store_array_source}
165-
issue: https://github.com/elastic/elasticsearch/issues/112264
166163
- class: org.elasticsearch.search.query.ScriptScoreQueryTests
167164
method: testScriptTermStatsAvailable
168165
issue: https://github.com/elastic/elasticsearch/issues/112278

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.create/20_synthetic_source.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,8 +1342,8 @@ subobjects auto:
13421342
# 112156
13431343
stored field under object with store_array_source:
13441344
- requires:
1345-
cluster_features: ["mapper.track_ignored_source"]
1346-
reason: requires tracking ignored source
1345+
cluster_features: ["mapper.source.synthetic_source_stored_fields_advance_fix"]
1346+
reason: requires bug fix to be implemented
13471347

13481348
- do:
13491349
indices.create:

server/src/main/java/org/elasticsearch/index/mapper/MapperFeatures.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public Set<NodeFeature> getFeatures() {
3232
IndexModeFieldMapper.QUERYING_INDEX_MODE,
3333
NodeMappingStats.SEGMENT_LEVEL_FIELDS_STATS,
3434
BooleanFieldMapper.BOOLEAN_DIMENSION,
35-
ObjectMapper.SUBOBJECTS_AUTO
35+
ObjectMapper.SUBOBJECTS_AUTO,
36+
SourceFieldMapper.SYNTHETIC_SOURCE_STORED_FIELDS_ADVANCE_FIX
3637
);
3738
}
3839
}

server/src/main/java/org/elasticsearch/index/mapper/SourceFieldMapper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838

3939
public class SourceFieldMapper extends MetadataFieldMapper {
4040
public static final NodeFeature SYNTHETIC_SOURCE_FALLBACK = new NodeFeature("mapper.source.synthetic_source_fallback");
41+
public static final NodeFeature SYNTHETIC_SOURCE_STORED_FIELDS_ADVANCE_FIX = new NodeFeature(
42+
"mapper.source.synthetic_source_stored_fields_advance_fix"
43+
);
4144

4245
public static final String NAME = "_source";
4346
public static final String RECOVERY_SOURCE_NAME = "_recovery_source";

0 commit comments

Comments
 (0)