Uh oh!
There was an error while loading. Please reload this page.
[SPARK-32165][SQL] Ensure Spark only initiates SharedState once across SparkSessions - #31053
[SPARK-32165][SQL] Ensure Spark only initiates SharedState once across SparkSessions#31053Ngone51 wants to merge 7 commits into
Conversation
Ngone51
commented
Jan 6, 2021
@cloud-fan@vinooganesh@advancedxy Please take a look, thanks! |
SparkQA
commented
Jan 6, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 6, 2021
Kubernetes integration test status failure |
SparkQA
commented
Jan 6, 2021
Test build #133713 has finished for PR 31053 at commit
|
cloud-fan
commented
Jan 6, 2021
seems we can also fix this issue by making sure there is only one |
yaooqinn
commented
Jan 6, 2021
right |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Ngone51
commented
Jan 7, 2021
Seems like the If we want to make sure there's only one Besides, although the only one SharedState instance can fixe Thoughts? |
cloud-fan
commented
Jan 7, 2021
I think it's an accident that the |
vinooganesh
commented
Jan 7, 2021
I agree with @cloud-fan and think it's easier just to ensure that SharedState can only be created once. Trying to compare listeners with their fully qualified class name seems more problematic than necessary (especially when there are so many different workflows that people use when setting up their listeners - including ones where different instances of a listener with the same fully qualified class name exist) |
Ngone51
commented
Jan 13, 2021
Hey guys, I've updated the PR with the one SharedState way. Please take another look, thanks! |
SparkQA
commented
Jan 13, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 13, 2021
Kubernetes integration test status failure |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Jan 13, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 13, 2021
Kubernetes integration test status success |
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Jan 13, 2021
Test build #134013 has finished for PR 31053 at commit
|
SparkQA
commented
Jan 13, 2021
Test build #134007 has finished for PR 31053 at commit
|
SparkQA
commented
Jan 14, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 14, 2021
Kubernetes integration test status success |
There was a problem hiding this comment.
is it duplicated with checking assert(countListener("ExecutionListenerBus", context) === 2)?
There was a problem hiding this comment.
No. Here we want to ensure other potential listeners won't leak across SparkSessions.
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Jan 14, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 14, 2021
Test build #134035 has finished for PR 31053 at commit
|
SparkQA
commented
Jan 16, 2021
Test build #134134 has finished for PR 31053 at commit
|
SparkQA
commented
Jan 16, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 16, 2021
Kubernetes integration test status failure |
Ngone51
commented
Jan 19, 2021
retest this please |
SparkQA
commented
Jan 19, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 19, 2021
Test build #134210 has finished for PR 31053 at commit
|
SparkQA
commented
Jan 19, 2021
Kubernetes integration test status failure |
Ngone51
commented
Jan 20, 2021
retest this please |
SparkQA
commented
Jan 20, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 20, 2021
Test build #134247 has finished for PR 31053 at commit
|
maropu
commented
Jan 20, 2021
retest this please |
SparkQA
commented
Jan 20, 2021
Kubernetes integration test status failure |
SparkQA
commented
Jan 20, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 20, 2021
Kubernetes integration test status success |
SparkQA
commented
Jan 20, 2021
Test build #134253 has finished for PR 31053 at commit
|
cloud-fan
commented
Jan 20, 2021
retest this please |
SparkQA
commented
Jan 20, 2021
Kubernetes integration test starting |
SparkQA
commented
Jan 20, 2021
Kubernetes integration test status success |
SparkQA
commented
Jan 20, 2021
Test build #134275 has finished for PR 31053 at commit
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
dnskr
commented
Jan 16, 2022
@Ngone51@cloud-fan Hi! The issue still exists. Can we reopen this PR? Otherwise please provide any comments why this cannot be merged or what should be done first? |
What changes were proposed in this pull request?
This PR makes sure that
SharedStatewould be only initiated once across SparkSessions.Why are the changes needed?
This helps us to fix the listener(e.g., SQLAppStatusListener) leak issue, and allow SparkSessions created by
getOrCreateto share theCacheManager, global temp view, etc.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Added UTs.