Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zuston committed May 30, 2024
1 parent cb276ea commit 42e6946
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ public synchronized List<ShuffleBlockInfo> clear(double bufferSpillRatio) {
List<Integer> partitionList = new ArrayList(buffers.keySet());
if (Double.compare(bufferSpillRatio, 1.0) < 0) {
partitionList.sort(
Comparator.comparingInt(
o -> buffers.get(o) == null ? 0 : buffers.get(o).getMemoryUsed())
Comparator.comparingInt(o -> buffers.get(o) == null ? 0 : buffers.get(o).getMemoryUsed())
.reversed());
targetSpillSize = (long) ((getUsedBytes() - getInSendListBytes()) * bufferSpillRatio);
}
Expand Down

0 comments on commit 42e6946

Please sign in to comment.