Repository navigation
Conversation
…ip locations without a scheme URI schemes are case-insensitive, so getStreams and Builder#isConnectionLocation now compare endpoint location schemes in lower case. A location without a scheme is skipped like other locations that cannot be used, instead of failing the query with a NullPointerException. Also update the GH-38574 comment in getStreams, and test over TLS that followEndpointLocations=false fetches a grpc+tcp location naming the connection over the existing TLS connection. Closes apache#1528.
jbonofre
requested review from
laurentgo,
lidavidm and
wgtmac
as code owners
November 27, 2026 19:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's Changed
Follow-up to #1527.
getStreamsandBuilder#isConnectionLocationcompare endpoint location schemes case-insensitively. Before this, an upper-caseGRPC+TLSlocation was refused on encrypted connections and fetched over plaintext on plaintext connections, and an upper-case location naming the connection was refused withfollowEndpointLocations=false.NullPointerException.getStreams: theFlightClientCacheis already shared and tracks unreachable locations, and the connection's own location is now detected whenfollowEndpointLocationsis false.Tests
ArrowFlightSqlClientHandlerTest: in both modes, a location without a scheme is skipped, or refused if it is the endpoint's only location. WithfollowEndpointLocations=false, upper-caseGRPC+TLSandARROW-FLIGHT-REUSE-CONNECTIONlocations are fetched over the connection.ArrowFlightSqlClientHandlerBuilderTest:isConnectionLocationignores the scheme's case.ConnectionFollowEndpointLocationsTest, over TLS: withfollowEndpointLocations=false, agrpc+tcplocation naming the connection is fetched over the existing TLS connection. By default, an upper-caseGRPC+TLSlocation on another server is followed.Closes #1528.