Skip to content

Commit 79408f5

Browse files
fix
1 parent f9198d2 commit 79408f5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/src/main/java/org/elasticsearch/action/search/QueryPhaseResultConsumer.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ private void consume(QuerySearchResult result) {
243243
if (aggregatorsReducerContext != null) {
244244
consumeAggs(result);
245245
}
246+
buffer.add(result);
246247
var toConsume = buffer;
247248
// add one if a partial merge is pending
248249
int size = toConsume.size() + (hasPartialReduce ? 1 : 0);
@@ -254,13 +255,8 @@ private void consume(QuerySearchResult result) {
254255
partialReduce(toConsume, numReducePhases);
255256
} catch (Exception t) {
256257
onMergeFailure(t);
257-
return;
258-
}
259-
if (hasFailure()) {
260-
return;
261258
}
262259
}
263-
buffer.add(result);
264260
}
265261
}
266262
}

0 commit comments

Comments
 (0)