Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-47986][CONNECT][PYTHON] Unable to create a new session when th…
…e default session is closed by the server ### What changes were proposed in this pull request? When the server closes a session, usually after a cluster restart, the client is unaware of this until it receives an error. At this point, the client in unable to create a new session to the same connect endpoint, since the stale session is still recorded as the active and default session. With this change, when the server communicates that the session has changed via a GRPC error, the session and the respective client are marked as stale. A new default connection can be created via the session builder. ### Why are the changes needed? See section above. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Attached unit tests ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#46221 from nija-at/session-expires. Authored-by: Niranjan Jayakar <nija@databricks.com> Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
- Loading branch information