-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-36273][Shuffle] Fix identical values comparison #33493
Conversation
This commit fixes the use of the "o.appAttemptId" variable instead of the mistaken "appAttemptId" variable. The current situation is a comparison of identical values
Good catch - looks like a correct fix. |
Jenkins test this please |
Kubernetes integration test starting |
Kubernetes integration test status success |
Test build #141558 has finished for PR 33493 at commit
|
This commit fixes the use of the "o.appAttemptId" variable instead of the mistaken "appAttemptId" variable. The current situation is a comparison of identical values. Jira issue report SPARK-36273. ### What changes were proposed in this pull request? This is a patch for SPARK-35546 which is needed for push-based shuffle. ### Why are the changes needed? A very minor fix of adding the reference from the other "FinalizeShuffleMerge". ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? No unit tests were added. It's a pretty logical change. Closes #33493 from almogtavor/patch-1. Authored-by: Almog Tavor <70065337+almogtavor@users.noreply.github.com> Signed-off-by: Sean Owen <srowen@gmail.com> (cherry picked from commit 530c8ad) Signed-off-by: Sean Owen <srowen@gmail.com>
Merged to master/3.2. It doesn't cherry-pick cleanly to 3.1 (may not be applicable, haven't looked). @almogtavor if you're interested, and find this can backport to 3.1, open another PR vs 3.1 and I'll merge that. Thanks! |
@@ -68,7 +68,7 @@ public boolean equals(Object other) { | |||
if (other != null && other instanceof FinalizeShuffleMerge) { | |||
FinalizeShuffleMerge o = (FinalizeShuffleMerge) other; | |||
return Objects.equal(appId, o.appId) | |||
&& appAttemptId == appAttemptId | |||
&& appAttemptId == o.appAttemptId |
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.
Yes, this was introduced via https://github.com/apache/spark/pull/33078/files#diff-a4d872ac22f3cbdfb587125ee9dc4c70fe9efca58e3de5b31dad227f689046f9R71 which landed at master/3.2 4 days ago.
So, we don't need this at branch-3.1.
+1, late LGTM. cc @zhouyejoe , @mridulm , @Ngone51 |
Ah right, should've done my homework. All set |
Late LGTM! Good catch @almogtavor |
Late LGTM, thanks for fixing this @almogtavor ! |
Thanks for fixing this @almogtavor |
This commit fixes the use of the "o.appAttemptId" variable instead of the mistaken "appAttemptId" variable. The current situation is a comparison of identical values. Jira issue report SPARK-36273. ### What changes were proposed in this pull request? This is a patch for SPARK-35546 which is needed for push-based shuffle. ### Why are the changes needed? A very minor fix of adding the reference from the other "FinalizeShuffleMerge". ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? No unit tests were added. It's a pretty logical change. Closes apache#33493 from almogtavor/patch-1. Authored-by: Almog Tavor <70065337+almogtavor@users.noreply.github.com> Signed-off-by: Sean Owen <srowen@gmail.com> (cherry picked from commit 530c8ad) Signed-off-by: Sean Owen <srowen@gmail.com>
This commit fixes the use of the "o.appAttemptId" variable instead of the mistaken "appAttemptId" variable. The current situation is a comparison of identical values. Jira issue report SPARK-36273. ### What changes were proposed in this pull request? This is a patch for SPARK-35546 which is needed for push-based shuffle. ### Why are the changes needed? A very minor fix of adding the reference from the other "FinalizeShuffleMerge". ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? No unit tests were added. It's a pretty logical change. Closes #33493 from almogtavor/patch-1. Authored-by: Almog Tavor <70065337+almogtavor@users.noreply.github.com> Signed-off-by: Sean Owen <srowen@gmail.com>
This commit fixes the use of the "o.appAttemptId" variable instead of the mistaken "appAttemptId" variable. The current situation is a comparison of identical values. Jira issue report SPARK-36273.
What changes were proposed in this pull request?
This is a patch for SPARK-35546 which is needed for push-based shuffle.
Why are the changes needed?
A very minor fix of adding the reference from the other "FinalizeShuffleMerge".
Does this PR introduce any user-facing change?
No.
How was this patch tested?
No unit tests were added. It's a pretty logical change.