-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41792][Shuffle] Fix DB update for push based shuffle when newer shuffle merge is received #39316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
+CC @zhouyejoe, @otterc, @Ngone51 |
|
+CC @wankunde, this fixes the bug I had described earlier. |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the JIRA, is this for both Apache Spark 3.3.2 and 3.4.0, @mridulm ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM. (BTW, nit, the Java-style 8-space indentation for continued lines looks a little strange to me. Since we used 2-space indentation even in Java, I thought we used 4-space for continued lines)
|
Oh, could you take a look at the failures? It looks like relevant. |
|
+1, LGTM |
zhouyejoe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 LGTM
| closeAndDeleteOutdatedPartitions( | ||
| appAttemptShuffleMergeId, mergePartitionsInfo.shuffleMergePartitions)); | ||
| closeAndDeleteOutdatedPartitions(currrentAppAttemptShuffleMergeId, | ||
| mergePartitionsInfo.shuffleMergePartitions)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: 4 spaces for continued lines.
|
@mridulm In my previous PR, I tried unify this deletion logic: delete |
|
Let me take a look, thanks @dongjoon-hyun. |
|
Agree with @yabola, the test is broken: I will fix the test to the expected output. |
This is only for master, I have updated the jira ... |
|
Got it. Thank you, @mridulm |
|
Merging to master |
|
Thanks for the review @dongjoon-hyun, @wankunde, @zhouyejoe, @yabola :-) |
What changes were proposed in this pull request?
Incorrect merge id is removed from the DB when a newer shuffle merge id is received.
Why are the changes needed?
Bug fix
Does this PR introduce any user-facing change?
No, fixes a corner case bug
How was this patch tested?
Unit test updated