From 3dce333413d4f7d825af32f2377ac09086171f26 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 18 May 2022 17:09:18 -0400 Subject: [PATCH] Removing hard coded value of max concurrent shard requests (#3364) (#3376) Signed-off-by: Ankit Jain (cherry picked from commit f8b102c565362def6908eed7dc82ae2b3cec8cb1) Co-authored-by: Ankit Jain --- .../org/opensearch/action/search/TransportSearchAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/action/search/TransportSearchAction.java b/server/src/main/java/org/opensearch/action/search/TransportSearchAction.java index 5dd576fa6ce53..1ca477942cdf6 100644 --- a/server/src/main/java/org/opensearch/action/search/TransportSearchAction.java +++ b/server/src/main/java/org/opensearch/action/search/TransportSearchAction.java @@ -340,7 +340,7 @@ public AbstractSearchAsyncAction asyncSearchAction( clusterState, task, new ArraySearchPhaseResults<>(shardsIts.size()), - 1, + searchRequest.getMaxConcurrentShardRequests(), clusters ) { @Override