This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 25db9c1270 GH-34367: [Java] Fix build error from sequential merges
(#34368)
25db9c1270 is described below
commit 25db9c1270fdb63677f73f1f0a761f10193e2db7
Author: David Li <[email protected]>
AuthorDate: Mon Feb 27 12:23:34 2023 -0500
GH-34367: [Java] Fix build error from sequential merges (#34368)
### Rationale for this change
I broke main by merging two PRs in quick succession that unfortunately
didn't work together.
### What changes are included in this PR?
Fix the build error.
### Are these changes tested?
N/A
### Are there any user-facing changes?
No, test code only
* Closes: #34367
Authored-by: David Li <[email protected]>
Signed-off-by: David Li <[email protected]>
---
.../java/org/apache/arrow/flight/client/CustomHeaderTest.java | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git
a/java/flight/flight-core/src/test/java/org/apache/arrow/flight/client/CustomHeaderTest.java
b/java/flight/flight-core/src/test/java/org/apache/arrow/flight/client/CustomHeaderTest.java
index a320d949cd..8fc7557c0b 100644
---
a/java/flight/flight-core/src/test/java/org/apache/arrow/flight/client/CustomHeaderTest.java
+++
b/java/flight/flight-core/src/test/java/org/apache/arrow/flight/client/CustomHeaderTest.java
@@ -35,6 +35,7 @@ import org.apache.arrow.flight.FlightServerMiddleware;
import org.apache.arrow.flight.FlightStream;
import org.apache.arrow.flight.FlightTestUtil;
import org.apache.arrow.flight.HeaderCallOption;
+import org.apache.arrow.flight.Location;
import org.apache.arrow.flight.NoOpFlightProducer;
import org.apache.arrow.flight.RequestContext;
import org.apache.arrow.flight.SyncPutListener;
@@ -74,10 +75,12 @@ public class CustomHeaderTest {
callHeaders.insert(entry.getKey(), entry.getValue());
}
headers = new HeaderCallOption(callHeaders);
- server = FlightTestUtil.getStartedServer(location ->
- FlightServer.builder(allocator, location, new NoOpFlightProducer())
- .middleware(FlightServerMiddleware.Key.of("customHeader"),
headersMiddleware)
- .build());
+ server = FlightServer.builder(allocator,
+ Location.forGrpcInsecure(FlightTestUtil.LOCALHOST, /*port*/ 0),
+ new NoOpFlightProducer())
+ .middleware(FlightServerMiddleware.Key.of("customHeader"),
headersMiddleware)
+ .build();
+ server.start();
client = FlightClient.builder(allocator, server.getLocation()).build();
}