nija-at opened a new pull request, #46221:
URL: https://github.com/apache/spark/pull/46221

   ### 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.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to