-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-34692: [Java] Expose Location.toSocketAddress #34648
Conversation
Thanks! Would it be possible to add a simple test with one or two asserts, just for sanity checking? I see it's only indirectly tested so far, but now that it's a public API it deserves a little testing |
Looks like there is a flaky test: https://github.com/apache/arrow/actions/runs/4484616893/jobs/7885328198 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
|
I filed an issue for this (don't think it's technically minor); you can comment 'take' on the issue to have it assigned to you |
Benchmark runs are scheduled for baseline = d526fd9 and contender = fd5d710. fd5d710 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
### Rationale for this change ### What changes are included in this PR? Change `Location.toSocketAddress()` to a public method. This is useful for creating a `FlightClient` via `FlightGrpcUtils.createFlightClient`: https://github.com/apache/arrow/blob/08fb86107b001e2e1903ae0e416ff51386d4239e/java/flight/flight-grpc/src/main/java/org/apache/arrow/flight/FlightGrpcUtils.java#L148 ### Are these changes tested? ### Are there any user-facing changes? * Closes: apache#34692 Authored-by: Jie Zhang <zhangjie@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
### Rationale for this change ### What changes are included in this PR? Change `Location.toSocketAddress()` to a public method. This is useful for creating a `FlightClient` via `FlightGrpcUtils.createFlightClient`: https://github.com/apache/arrow/blob/08fb86107b001e2e1903ae0e416ff51386d4239e/java/flight/flight-grpc/src/main/java/org/apache/arrow/flight/FlightGrpcUtils.java#L148 ### Are these changes tested? ### Are there any user-facing changes? * Closes: apache#34692 Authored-by: Jie Zhang <zhangjie@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Rationale for this change
What changes are included in this PR?
Change
Location.toSocketAddress()
to a public method. This is useful for creating aFlightClient
viaFlightGrpcUtils.createFlightClient
:arrow/java/flight/flight-grpc/src/main/java/org/apache/arrow/flight/FlightGrpcUtils.java
Line 148 in 08fb861
Are these changes tested?
Are there any user-facing changes?