lidavidm commented on issue #11932: URL: https://github.com/apache/arrow/issues/11932#issuecomment-992642561
Ok, disabling the default handler is doable, so long as it's understood that you still need a background thread. (Relatedly, note that the server is active as soon as it's created, even without calling Serve(). Serve() really just waits for shutdown. So you could just skip all that.) There's no difference. The signal handler just calls shutdown() (at the C++ level, so bypassing any overridden Python method). I tested the shutdown-with-deadline method in C++, for what it's worth, and it also does not cancel ongoing RPC handlers. I think by a careful reading of https://stackoverflow.com/questions/51196732/grpc-how-can-rpc-handlers-properly-detect-if-server-has-been-shutdown/51333217 and the linked gRPC method, this is expected; gRPC will only cancel handlers using the async API. -- 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]
