You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Inder SIngh (Commented) (JIRA)" <ji...@apache.org> on 2012/03/06 12:02:57 UTC

[jira] [Commented] (THRIFT-149) TNonBlockingServer graceful shutdown

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

Inder SIngh commented on THRIFT-149:
------------------------------------

Is thrift 0.8 having support for this?
                
> TNonBlockingServer graceful shutdown
> ------------------------------------
>
>                 Key: THRIFT-149
>                 URL: https://issues.apache.org/jira/browse/THRIFT-149
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C++ - Library
>            Reporter: Erik Frey
>            Priority: Minor
>         Attachments: nonblocking_graceful_shutdown.patch
>
>
> There doesn't seem to be a way to gracefully shutdown TNonBlockingServer - this patch is a start.  It allows TNonBlockingServer to gracefully handle a ThreadManager that's being stopped (and finishing up its workers) -- if it catches an IllegalStateException when it tries to add a task, it simply closes the connection.
> This allows the server implementor to stop the thread manager first, then dismantle the rest of the server.  Clients that made it through before the thread manager was stopped receive a response, and clients after receive an abruptly closed connection.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira