Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,12 @@ public RssSendShuffleDataResponse sendShuffleData(RssSendShuffleDataRequest requ
List<ShuffleBlock> shuffleBlocks = Lists.newArrayList();
int partitionRequireSize = 0;
for (ShuffleBlockInfo sbi : ptb.getValue()) {
if (sbi.getData().refCnt() == 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may not safe, I think the fast fail will be better than slient sucess.
But for this case, I haven't found the root cause about this.

Copy link
Collaborator Author

@cchung100m cchung100m Oct 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @zuston

Thanks for the reply. I updated the part you mentioned.

Since we throw the proper RssException here, we might leverage the retry machanism which introduced by #2608 to solve the data race?

Copy link
Member

@zuston zuston Oct 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this PR's change looks good to me. I will take a deep look #2608 assp in this week

throw new RssException(
"Detected a ShuffleBlockInfo with a released buffer (refCnt=0) for blockId["
+ sbi.getBlockId()
+ "].");
}
shuffleBlocks.add(
ShuffleBlock.newBuilder()
.setBlockId(sbi.getBlockId())
Expand Down
Loading