You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/10/28 03:42:50 UTC

[GitHub] [arrow] emkornfield commented on a change in pull request #8265: ARROW-9586: [FlightRPC][Java] implement per-call allocator

emkornfield commented on a change in pull request #8265:
URL: https://github.com/apache/arrow/pull/8265#discussion_r513162096



##########
File path: java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightService.java
##########
@@ -200,10 +203,11 @@ public void completed() {
     responseObserver.disableAutoInboundFlowControl();
     responseObserver.request(1);
 
+    BufferAllocator callAllocator = getCallAllocator();
     final StreamPipe<PutResult, Flight.PutResult> ackStream = StreamPipe
         .wrap(responseObserver, PutResult::toProtocol, this::handleExceptionWithMiddleware);
     final FlightStream fs = new FlightStream(
-        allocator,
+        callAllocator,

Review comment:
       why a different patter here (assigning to variable vs below?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org