Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5063

[Java] FlightClient should not create a child allocator

    XMLWordPrintableJSON

    Details

      Description

      I ran into a problem when testing out Flight using the ExampleFlightServer with InMemoryStore producer. 

      A client will iterate over endpoints and locations to get the streams, and the example creates a new client for each location. The only way to close the allocator in the FlightClient is to close the FlightClient, which also closes the read channel.  If the location is the same for each FlightStream (as is the case for the InMemoryStore), then it seems like grpc will reuse the channel, so closing one read client will shutdown the channel and the remaining FlightStreams cannot be read.

      If an allocator was created by the owner of the FlightClient, then the client would not need to close it and this problem would be avoided. I believe other Flight classes do not create child allocators either, so this change would be consistent.

        Attachments

          Activity

            People

            • Assignee:
              lidavidm lidavidm
              Reporter:
              bryanc Bryan Cutler
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h 20m
                4h 20m