diff --git a/muted-tests.yml b/muted-tests.yml index 414f0fe908d0b..578611f57ca80 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -393,9 +393,6 @@ tests: - class: org.elasticsearch.packaging.test.DockerTests method: test026InstallBundledRepositoryPluginsViaConfigFile issue: https://github.com/elastic/elasticsearch/issues/127158 -- class: org.elasticsearch.xpack.esql.plugin.DataNodeRequestSenderIT - method: testSearchWhileRelocating - issue: https://github.com/elastic/elasticsearch/issues/127188 - class: org.elasticsearch.xpack.remotecluster.CrossClusterEsqlRCS2EnrichUnavailableRemotesIT method: testEsqlEnrichWithSkipUnavailable issue: https://github.com/elastic/elasticsearch/issues/127368 diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/DataNodeComputeHandler.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/DataNodeComputeHandler.java index e423cd43f8f9b..de431fdb8929e 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/DataNodeComputeHandler.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/DataNodeComputeHandler.java @@ -328,8 +328,8 @@ private void acquireSearchContexts( } final var doAcquire = ActionRunnable.supply(listener, () -> { final List searchContexts = new ArrayList<>(targetShards.size()); - SearchContext context = null; for (IndexShard shard : targetShards) { + SearchContext context = null; try { var aliasFilter = aliasFilters.getOrDefault(shard.shardId().getIndex(), AliasFilter.EMPTY); var shardRequest = new ShardSearchRequest(