This is an automated email from the ASF dual-hosted git repository.
guoweijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 712d9800e6c [FLINK-35166][runtime] Make the SortBufferAccumulator use
more buffers when the parallelism is small
712d9800e6c is described below
commit 712d9800e6c02e66b51747ca65331ad9e5295ffb
Author: jiangxin <[email protected]>
AuthorDate: Fri Apr 19 15:18:24 2024 +0800
[FLINK-35166][runtime] Make the SortBufferAccumulator use more buffers when
the parallelism is small
---
.../partition/hybrid/tiered/shuffle/TieredResultPartitionFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/shuffle/TieredResultPartitionFactory.java
b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/shuffle/TieredResultPartitionFactory.java
index c70639df8b5..74d26933e2f 100644
---
a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/shuffle/TieredResultPartitionFactory.java
+++
b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/shuffle/TieredResultPartitionFactory.java
@@ -165,7 +165,7 @@ public class TieredResultPartitionFactory {
bufferAccumulator =
new SortBufferAccumulator(
numSubpartitions,
- Math.min(numSubpartitions + 1,
numAccumulatorExclusiveBuffers),
+ numAccumulatorExclusiveBuffers,
bufferSize,
enableMemoryDecoupling ? poolSizeCheckInterval : 0,
storageMemoryManager,