Skip to content

Commit

Permalink
[CELEBORN] Fix push small data (apache#3766)
Browse files Browse the repository at this point in the history
  • Loading branch information
exmy authored Nov 20, 2023
1 parent dc75cca commit cb18fc1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class CelebornPartitionPusher(

@throws[IOException]
def pushPartitionData(partitionId: Int, buffer: Array[Byte], length: Int): Int = {
logDebug(s"Push record, size ${buffer.length}.")
if (buffer.length > clientPushBufferMaxSize) {
if (length > clientPushBufferMaxSize) {
logDebug(s"Push Data, size $length.")
client.pushData(
shuffleId,
mapId,
Expand All @@ -48,6 +48,7 @@ class CelebornPartitionPusher(
numMappers,
numPartitions)
} else {
logDebug(s"Merge Data, size $length.")
client.mergeData(
shuffleId,
mapId,
Expand Down

0 comments on commit cb18fc1

Please sign in to comment.