File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/main/java/org/elasticsearch/action/search Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,16 +170,16 @@ protected void notifyListShards(
170170 SearchRequest searchRequest ,
171171 List <SearchShardIterator > allIterators
172172 ) {
173- final List <SearchShardIterator > skipped = new ArrayList <>();
173+ final List <SearchShard > skipped = new ArrayList <>(allIterators . size () - shardsIts . size () );
174174 for (SearchShardIterator iter : allIterators ) {
175175 if (iter .skip ()) {
176- skipped .add (iter );
176+ skipped .add (new SearchShard ( iter . getClusterAlias (), iter . shardId ()) );
177177 }
178178 }
179179 var sourceBuilder = searchRequest .source ();
180180 progressListener .notifyListShards (
181181 SearchProgressListener .buildSearchShardsFromIter (this .shardsIts ),
182- SearchProgressListener . buildSearchShardsFromIter ( skipped ) ,
182+ skipped ,
183183 clusters ,
184184 sourceBuilder == null || sourceBuilder .size () > 0 ,
185185 timeProvider
You can’t perform that action at this time.
0 commit comments