File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
server/src/main/java/org/elasticsearch/action/search Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ abstract class AbstractSearchAsyncAction<Result extends SearchPhaseResult> exten
150150 // it's number of active shards but use 1 as the default if no replica of a shard is active at this point.
151151 // on a per shards level we use shardIt.remaining() to increment the totalOps pointer but add 1 for the current shard result
152152 // we process hence we add one for the non active partition here.
153- this .expectedTotalOps = shardsIts .totalSizeWith1ForEmpty ();
153+ this .expectedTotalOps = shardsIts .totalSize ();
154154 this .maxConcurrentRequestsPerNode = maxConcurrentRequestsPerNode ;
155155 // in the case were we have less shards than maxConcurrentRequestsPerNode we don't need to throttle
156156 this .throttleConcurrentRequests = maxConcurrentRequestsPerNode < shardsIts .size ();
You can’t perform that action at this time.
0 commit comments