jbonofre opened a new pull request, #1529: URL: https://github.com/apache/arrow-java/pull/1529
## What's Changed Follow-up to #1527. - `getStreams` and `Builder#isConnectionLocation` compare endpoint location schemes case-insensitively. Before this, an upper-case `GRPC+TLS` location was refused on encrypted connections and fetched over plaintext on plaintext connections, and an upper-case location naming the connection was refused with `followEndpointLocations=false`. - A location without a scheme is skipped like other locations that cannot be used, instead of failing the query with a `NullPointerException`. - Updates the GH-38574 comment in `getStreams`: the `FlightClientCache` is already shared and tracks unreachable locations, and the connection's own location is now detected when `followEndpointLocations` is false. ## Tests - `ArrowFlightSqlClientHandlerTest`: in both modes, a location without a scheme is skipped, or refused if it is the endpoint's only location. With `followEndpointLocations=false`, upper-case `GRPC+TLS` and `ARROW-FLIGHT-REUSE-CONNECTION` locations are fetched over the connection. - `ArrowFlightSqlClientHandlerBuilderTest`: `isConnectionLocation` ignores the scheme's case. - `ConnectionFollowEndpointLocationsTest`, over TLS: with `followEndpointLocations=false`, a `grpc+tcp` location naming the connection is fetched over the existing TLS connection. By default, an upper-case `GRPC+TLS` location on another server is followed. Closes #1528. The code and tests were drafted with an AI coding assistant. I reviewed the changes. The new scheme tests fail on main and pass with this change. The TLS `followEndpointLocations=false` test covers #1527 and passes on both. -- 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]
