Skip to content

Commit 86f2d88

Browse files
committed
Fix wrong reduce memory estimate calculation
1 parent 84a4bf4 commit 86f2d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ private long ramBytesUsedQueryResult(QuerySearchResult result) {
462462
* the reduce completes.
463463
*/
464464
private static long estimateRamBytesUsedForReduce(long size) {
465-
return Math.round(1.5d * size - size);
465+
return Math.round(1.5d * size);
466466
}
467467

468468
private void consume(QuerySearchResult result, Runnable next) {

0 commit comments

Comments
 (0)