Skip to content

Commit

Permalink
Merge branch 'main' into fix-ccs-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Sep 30, 2024
2 parents a37288b + d799fec commit 38282ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 6 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,6 @@ tests:
- class: org.elasticsearch.xpack.ml.integration.MlJobIT
method: testCreateJobsWithIndexNameOption
issue: https://github.com/elastic/elasticsearch/issues/113528
- class: org.elasticsearch.validation.DotPrefixClientYamlTestSuiteIT
method: test {p0=dot_prefix/10_basic/Deprecated index template with a dot prefix index pattern}
issue: https://github.com/elastic/elasticsearch/issues/113529
- class: org.elasticsearch.xpack.inference.TextEmbeddingCrudIT
method: testPutE5WithTrainedModelAndInference
issue: https://github.com/elastic/elasticsearch/issues/113565
Expand Down Expand Up @@ -327,6 +324,12 @@ tests:
issue: https://github.com/elastic/elasticsearch/issues/112980
- class: org.elasticsearch.xpack.searchablesnapshots.hdfs.SecureHdfsSearchableSnapshotsIT
issue: https://github.com/elastic/elasticsearch/issues/113753
- class: org.elasticsearch.ingest.geoip.DatabaseNodeServiceIT
method: testNonGzippedDatabase
issue: https://github.com/elastic/elasticsearch/issues/113821
- class: org.elasticsearch.ingest.geoip.DatabaseNodeServiceIT
method: testGzippedDatabase
issue: https://github.com/elastic/elasticsearch/issues/113752

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
return Arrays.asList(MockFSIndexStore.TestPlugin.class);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/106752")
public void testRandomDirectoryIOExceptions() throws IOException, InterruptedException, ExecutionException {
String mapping = Strings.toString(
XContentFactory.jsonBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public class IndexShard extends AbstractIndexShardComponent implements IndicesCl

// sys prop to disable the field has value feature, defaults to true (enabled) if set to false (disabled) the
// field caps always returns empty fields ignoring the value of the query param `field_caps_empty_fields_filter`.
private final boolean enableFieldHasValue = Booleans.parseBoolean(
private static final boolean enableFieldHasValue = Booleans.parseBoolean(
System.getProperty("es.field_caps_empty_fields_filter", Boolean.TRUE.toString())
);

Expand Down Expand Up @@ -4080,7 +4080,7 @@ public void beforeRefresh() {}

@Override
public void afterRefresh(boolean didRefresh) {
if (enableFieldHasValue) {
if (enableFieldHasValue && (didRefresh || fieldInfos == FieldInfos.EMPTY)) {
try (Engine.Searcher hasValueSearcher = getEngine().acquireSearcher("field_has_value")) {
setFieldInfos(FieldInfos.getMergedFieldInfos(hasValueSearcher.getIndexReader()));
} catch (AlreadyClosedException ignore) {
Expand Down

0 comments on commit 38282ed

Please sign in to comment.