mkristofik opened a new issue, #33839:
URL: https://github.com/apache/arrow/issues/33839

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I'm using the Java flight-core version 10.0.1 and grpc-core version 1.50.2.  
I'm having trouble attaching headers to a GET call to a server.
   ```java
   Ticket ticket = new Ticket(/* ... */);
   CallHeaders headers = new FlightCallHeaders();
   headers.insert("foo", "bar");
   CallOption opt = new HeaderCallOption(headers);
   try (FlightStream stream = client.getStream(ticket, opt)) {
       // ...
   }
   ```
   I have logs that show the headers added to `opt` are not making it to the 
server.  My best guess at why this happens is due to 
https://github.com/apache/arrow/blob/master/java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightClient.java#L309.
  `FlightClient` is ignoring the new stub returned by gRPC which has the 
header-injection interceptor added, see 
https://github.com/grpc/grpc-java/blob/master/stub/src/main/java/io/grpc/stub/MetadataUtils.java#L55.
   
   Am I doing something wrong here?
   
   ### Component(s)
   
   FlightRPC, Java


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to