We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2660b77 commit 88233b3Copy full SHA for 88233b3
server/src/main/java/org/elasticsearch/action/search/AbstractSearchAsyncAction.java
@@ -135,7 +135,7 @@ abstract class AbstractSearchAsyncAction<Result extends SearchPhaseResult> exten
135
}
136
this.skippedCount = skipped;
137
this.shardsIts = iterators;
138
- outstandingShards = new AtomicInteger(shardsIts.size() - skipped);
+ outstandingShards = new AtomicInteger(iterators.size());
139
successfulOps = new AtomicInteger(skipped);
140
this.shardIterators = iterators.toArray(new SearchShardIterator[0]);
141
// we later compute the shard index based on the natural order of the shards
0 commit comments