Skip to content

[#2753] fix(spark): ignore removed failed blocks#2754

Open
zuston wants to merge 1 commit into
apache:masterfrom
zuston:fixnpe5
Open

[#2753] fix(spark): ignore removed failed blocks#2754
zuston wants to merge 1 commit into
apache:masterfrom
zuston:fixnpe5

Conversation

@zuston

@zuston zuston commented Jun 22, 2026

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

fix NPE by better handling removed blocks

Why are the changes needed?

getFailedBlockIds() returned a live key set from a concurrent map. After one thread got a failed block id, another thread could clear that block’s failed state after the block was resent successfully. Then getFailedBlockStatus(blockId) returned null, and the resend logic later accessed it, causing a NullPointerException.

fix #2753

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit test

@zuston zuston requested a review from roryqi June 23, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Potential NPE on reassignment

1 participant