Skip to content

Conversation

@kou
Copy link
Member

@kou kou commented May 5, 2023

Rationale for this change

Because it's also a RPC call like others such as ListFlights() and DoGet().

If we pass ServerCallContext instead of CallHeaders, implementers can also get other information such as client address. For example, https://github.com/apache/arrow-flight-sql-postgresql will use it by ServerCallContext::peer().

What changes are included in this PR?

Passes ServerCallContext instead of CallHeaders but keeps a backward compatibility.
Implementers can still use the old signature.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes. But this is still backward compatible.

…llHeaders to ServerMiddlewareFactory::StartCall()
@kou kou requested a review from lidavidm as a code owner May 5, 2023 22:04
@github-actions
Copy link

github-actions bot commented May 5, 2023

@github-actions
Copy link

github-actions bot commented May 5, 2023

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

Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels May 5, 2023
@kou kou merged commit f0e1453 into apache:main May 6, 2023
@kou kou deleted the cpp-flight-server-middleware-start-call-context branch May 6, 2023 20:08
@ursabot
Copy link

ursabot commented May 6, 2023

Benchmark runs are scheduled for baseline = b43f4cd and contender = f0e1453. f0e1453 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 ⬇️2.22% ⬆️0.0%] test-mac-arm
[Finished ⬇️0.26% ⬆️0.0%] ursa-i9-9960x
[Failed ⬇️0.0% ⬆️0.0%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] f0e14539 ec2-t3-xlarge-us-east-2
[Failed] f0e14539 test-mac-arm
[Finished] f0e14539 ursa-i9-9960x
[Failed] f0e14539 ursa-thinkcentre-m75q
[Finished] b43f4cd4 ec2-t3-xlarge-us-east-2
[Failed] b43f4cd4 test-mac-arm
[Finished] b43f4cd4 ursa-i9-9960x
[Failed] b43f4cd4 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

@ursabot
Copy link

ursabot commented May 6, 2023

['Python', 'R'] benchmarks have high level of regressions.
test-mac-arm
ursa-i9-9960x

liujiacheng777 pushed a commit to LoongArch-Python/arrow that referenced this pull request May 11, 2023
…llHeaders to ServerMiddlewareFactory::StartCall() (apache#35454)

### Rationale for this change

Because it's also a RPC call like others such as `ListFlights()` and `DoGet()`.

If we pass `ServerCallContext` instead of `CallHeaders`, implementers can also get other information such as client address. For example, https://github.com/apache/arrow-flight-sql-postgresql will use it by `ServerCallContext::peer()`.

### What changes are included in this PR?

Passes `ServerCallContext` instead of `CallHeaders` but keeps a backward compatibility.
Implementers can still use the old signature.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes. But this is still backward compatible.
* Closes: apache#35442

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
ArgusLi pushed a commit to Bit-Quill/arrow that referenced this pull request May 15, 2023
…llHeaders to ServerMiddlewareFactory::StartCall() (apache#35454)

### Rationale for this change

Because it's also a RPC call like others such as `ListFlights()` and `DoGet()`.

If we pass `ServerCallContext` instead of `CallHeaders`, implementers can also get other information such as client address. For example, https://github.com/apache/arrow-flight-sql-postgresql will use it by `ServerCallContext::peer()`.

### What changes are included in this PR?

Passes `ServerCallContext` instead of `CallHeaders` but keeps a backward compatibility.
Implementers can still use the old signature.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes. But this is still backward compatible.
* Closes: apache#35442

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
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.

[C++][FlightRPC] Pass ServerCallContext instead of CallHeaders to ServerMiddlewareFactory::StartCall()

3 participants