Skip to content

Conversation

@aiguofer
Copy link
Contributor

@aiguofer aiguofer commented Jan 31, 2023

Rationale for this change

The expectation is that any custom properties set on the JDBC connection are sent across on every request. This PR ensures the handshake request gets those headers as well.

What changes are included in this PR?

Ensure custom headers are sent during auth handshake

Are these changes tested?

No, not sure where the best place to test this.

Are there any user-facing changes?

No, other than seeing expected behavior.

Looks like `getAuthenticate` makes a request to the server before it
adds the `CredentialCallOption` to the client options. In order to
send the existing `CallOptions` we need to pass them in to `getAuthenticate`
@aiguofer aiguofer requested a review from lidavidm as a code owner January 31, 2023 07:00
@github-actions
Copy link

@github-actions
Copy link

⚠️ GitHub issue #33874 has been automatically assigned in GitHub to PR creator.

@lidavidm lidavidm changed the title GH-33874 [Java] Ensure custom headers are included during JDBC auth handshake GH-33874: [Java] Ensure custom headers are included during JDBC auth handshake Jan 31, 2023
@lidavidm lidavidm merged commit 61f3cdf into apache:master Jan 31, 2023
@ursabot
Copy link

ursabot commented Feb 1, 2023

Benchmark runs are scheduled for baseline = a0e2d65 and contender = 61f3cdf. 61f3cdf is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Failed ⬇️0.23% ⬆️0.0%] test-mac-arm
[Failed ⬇️0.0% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.25% ⬆️0.06%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] 61f3cdfd ec2-t3-xlarge-us-east-2
[Failed] 61f3cdfd test-mac-arm
[Failed] 61f3cdfd ursa-i9-9960x
[Finished] 61f3cdfd ursa-thinkcentre-m75q
[Finished] a0e2d65e ec2-t3-xlarge-us-east-2
[Failed] a0e2d65e test-mac-arm
[Failed] a0e2d65e ursa-i9-9960x
[Finished] a0e2d65e ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
… auth handshake (apache#33946)

### Rationale for this change

The expectation is that any custom properties set on the JDBC connection are sent across on every request. This PR ensures the handshake request gets those headers as well.

### What changes are included in this PR?

Ensure custom headers are sent during auth handshake

### Are these changes tested?

No, not sure where the best place to test this.

### Are there any user-facing changes?

No, other than seeing expected behavior.

* Closes: apache#33874

Authored-by: Diego Fernandez <[email protected]>
Signed-off-by: David Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Java] Custom headers/properties through Arrow Flight SQL JDBC

3 participants