pitrou commented on PR #36517:
URL: https://github.com/apache/arrow/pull/36517#issuecomment-1640297582

   Hmm, so it seems gRPC doesn't like us to destroy a `ClientReactor` from a 
gRPC-initiated callback (`OnDone`). Fair enough, but the problem is that 
dropping resources when the async system tells us the IO is finished is the 
logical thing to do.
   
   This means that we may expose a `Listener*` in the API and let the caller 
handle the lifetime, but the caller will probably find it practical to do the 
same thing, i.e. somehow destroy resources when `Listener::OnFinish` is called. 
And of course a similar situation would occur implicitly with a `Future`'s done 
callback.
   
   Did you try to report the issue to the gRPC project? This seems like a 
usability annoyance; also, perhaps we're missing a convenience to avoid the 
problem?
   


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