You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-54815][CONNECT] Do not close the class loader of the session state if session is still in use
### What changes were proposed in this pull request?
This is a followup of #53233 . When session state is evicted from `Executor#isolatedSessionCache`, the session may still being used by the running tasks. This PR adds ref counting and skips closing class loader if the session is still in use.
### Why are the changes needed?
closing class loader may break running tasks
### Does this PR introduce _any_ user-facing change?
Yes, previously long running tasks may fail, and now it's fixed.
### How was this patch tested?
existing tests. It's hard to construct a long running task and test the class loader behavior, but this fix is quite obvious.
### Was this patch authored or co-authored using generative AI tooling?
cursor 2.2.20
Closes#53569 from cloud-fan/cache.
Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
0 commit comments