From 0a99df6e9a3cf1834b19e23bc9f2076358ab94ed Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Wed, 9 Sep 2020 15:02:47 -0400 Subject: [PATCH] Do not add unmatched shard routing --- .../action/search/TransportSearchAction.java | 37 ++++--------------- .../cluster/routing/OperationRouting.java | 5 --- 2 files changed, 8 insertions(+), 34 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java b/server/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java index a5b6cf2fc3643..e41a9c5e7d8a2 100644 --- a/server/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java +++ b/server/src/main/java/org/elasticsearch/action/search/TransportSearchAction.java @@ -39,9 +39,7 @@ import org.elasticsearch.cluster.node.DiscoveryNode; import org.elasticsearch.cluster.node.DiscoveryNodes; import org.elasticsearch.cluster.routing.GroupShardsIterator; -import org.elasticsearch.cluster.routing.OperationRouting; import org.elasticsearch.cluster.routing.ShardIterator; -import org.elasticsearch.cluster.routing.ShardRouting; import org.elasticsearch.cluster.service.ClusterService; import org.elasticsearch.common.Nullable; import org.elasticsearch.common.Strings; @@ -581,14 +579,8 @@ static List getRemoteShardsIteratorFromPointInTime(Map