-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-19674][SQL]Ignore driver accumulator updates don't belong to the execution when merging all accumulator updates #17009
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
|
Test build #73199 has finished for PR 17009 at commit
|
|
|
||
| checkAnswer(listener.getExecutionMetrics(0), accumulatorUpdates.mapValues(_ * 2)) | ||
|
|
||
| // Non-existing driver accumulator updates should be filtered and no exception will be thrown. |
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.
when will this happen?
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.
I was doing some own experiments that adds physical operators at runtime. The metrics of the added operators are not registered to the execution so I got a NoSuchElementException.
|
The change looks reasonable, but is it |
|
Thanks @cloud-fan . |
|
Test build #73333 has finished for PR 17009 at commit
|
|
retest this please |
|
Test build #73360 has finished for PR 17009 at commit
|
|
thanks, merging to master! |
…the execution when merging all accumulator updates ## What changes were proposed in this pull request? In SQLListener.getExecutionMetrics, driver accumulator updates don't belong to the execution should be ignored when merging all accumulator updates to prevent NoSuchElementException. ## How was this patch tested? Updated unit test. Author: Carson Wang <[email protected]> Closes apache#17009 from carsonwang/FixSQLMetrics.
|
It looks like this will fix a bug we're experiencing in Spark 2.1. Given that this PR is a bug fix, any chance we can get a backport into |
…the execution when merging all accumulator updates ## What changes were proposed in this pull request? In SQLListener.getExecutionMetrics, driver accumulator updates don't belong to the execution should be ignored when merging all accumulator updates to prevent NoSuchElementException. ## How was this patch tested? Updated unit test. Author: Carson Wang <[email protected]> Closes apache#17009 from carsonwang/FixSQLMetrics.
|
I created a Spark 2.1 backport at #17418. |
[SPARK-19674][SQL] Ignore driver accumulator updates don't belong to the execution when merging all accumulator updates N.B. This is a backport to branch-2.1 of #17009. ## What changes were proposed in this pull request? In SQLListener.getExecutionMetrics, driver accumulator updates don't belong to the execution should be ignored when merging all accumulator updates to prevent NoSuchElementException. ## How was this patch tested? Updated unit test. Author: Carson Wang <carson.wangintel.com> Author: Carson Wang <[email protected]> Closes #17418 from mallman/spark-19674-backport_2.1.
What changes were proposed in this pull request?
In SQLListener.getExecutionMetrics, driver accumulator updates don't belong to the execution should be ignored when merging all accumulator updates to prevent NoSuchElementException.
How was this patch tested?
Updated unit test.