You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Yibo Cai (Jira)" <ji...@apache.org> on 2022/01/28 03:06:00 UTC

[jira] [Commented] (ARROW-15487) [C++][FlightRPC] Add FlightClient::Close

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

Yibo Cai commented on ARROW-15487:
----------------------------------

+1. I met with same issue when implementing data plane.

> [C++][FlightRPC] Add FlightClient::Close
> ----------------------------------------
>
>                 Key: ARROW-15487
>                 URL: https://issues.apache.org/jira/browse/ARROW-15487
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++, FlightRPC
>            Reporter: David Li
>            Assignee: David Li
>            Priority: Major
>
> We should add an explicit Close() method to Flight clients. For backwards compatibility, the client destructor should call Close().
> For gRPC, we do not have an explicit Close() method provided by gRPC, so it will just be a no-op (or perhaps explicitly drop the reference to the underlying gRPC client). When ARROW-15473 is implemented, Close() could cancel all calls and drop the reference.
> For UCX, we will need an explicit Close() to clean up resources (and return error codes), so this will be useful then.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)