[ 
https://issues.apache.org/jira/browse/ARROW-7343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16992701#comment-16992701
 ] 

David Li commented on ARROW-7343:
---------------------------------

I've implemented the fix in the linked PR. I also found that DoPut could leak 
for different reasons (we call gRPC methods that can throw, causing us to skip 
cleanup), which I've fixed.

> [Java] Memory leak in Flight DoGet when client cancels
> ------------------------------------------------------
>
>                 Key: ARROW-7343
>                 URL: https://issues.apache.org/jira/browse/ARROW-7343
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: FlightRPC, Java
>    Affects Versions: 0.14.0
>            Reporter: David Li
>            Assignee: David Li
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> I believe this causes things like ARROW-4765.
> -If a stream is interrupted or otherwise not drained by the client, the 
> serialized form of the ArrowMessage (DrainableByteBufInputStream) will sit 
> around forever, leaking memory.-



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to