You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2021/07/20 15:38:00 UTC

[jira] [Commented] (ARROW-13409) [C++][FlightRPC] Expose server shutdown with deadline

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

David Li commented on ARROW-13409:
----------------------------------

Thanks, I note there's a TODO for doing this. We just need to bind https://grpc.github.io/grpc/cpp/classgrpc_1_1_server_interface.html#a644772d11101318f1424e595dee73ccf

> [C++][FlightRPC] Expose server shutdown with deadline
> -----------------------------------------------------
>
>                 Key: ARROW-13409
>                 URL: https://issues.apache.org/jira/browse/ARROW-13409
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++, FlightRPC
>            Reporter: Pavel Sheftelevich
>            Priority: Major
>
> Hello Arrow Team,
> Right now if there is an active client connection to Flight Server , call to
> {code:java}
> server->ShutDown
> {code}
> will hang until client disconnects. It seems currently there is no way to force server shutdown. 
> I believe the reason for this is following:
> Inside
> {code:java}
> impl_->server_->ShutDown(){code}
> happens
> {code:java}
> g_core_codegen_interface->gpr_inf_future(GPR_CLOCK_MONOTONIC){code}
> thus server has infinite deadline on waiting to finish connections.
> It would be great if you add option for forced shutdown or point me to some existing way to shutdown server independently on client connections.
> Thank you



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