AbhishekPathania opened a new pull request, #1504: URL: https://github.com/apache/arrow-java/pull/1504
## What's Changed `Connection#close` now sends `CloseSession` even when no `catalog` was set, so servers that create a session per connection can free it right away. - Without a catalog the call is best effort: any error is logged at debug and ignored, because the server may not support sessions. With a catalog, errors are handled as before. - The call has a 5 second deadline, so `close` cannot hang on an unresponsive server. `FlightClient#close` already waits up to 5 seconds for the channel to shut down. - The gRPC channel is now closed even when `CloseSession` throws. This matches ADBC's Flight SQL driver, which always sends `CloseSession` on close. The code and tests were drafted with an AI assistant (Claude). I reviewed every change and also ran it against our own Flight SQL server, where 25 reconnects left 25 sessions open before this change and none after. Closes #1502. -- 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]
