You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Andrew Finnell (JIRA)" <ji...@apache.org> on 2014/03/21 03:20:43 UTC

[jira] [Commented] (ZOOKEEPER-575) remove System.exit calls to make the server more container friendly

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

Andrew Finnell commented on ZOOKEEPER-575:
------------------------------------------

Do I need to rebuild this patch or was it already patched through another means?

> remove System.exit calls to make the server more container friendly
> -------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-575
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-575
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.4.0
>            Reporter: Patrick Hunt
>            Assignee: Andrew Finnell
>             Fix For: 3.5.0
>
>         Attachments: ZOOKEEPER-575-2.patch, ZOOKEEPER-575-3.patch, ZOOKEEPER-575.patch, ZOOKEEPER-575_4.patch
>
>
> There are a handful of places left in the code that still use System.exit, we should remove these to make the server
> more container friendly.
> There are some legitimate places for the exits - in *Main.java for example should be fine - these are the command
> line main routines. Containers should be embedding code that runs just below this layer (or we should refactor
> so that it would).
> The tricky bit is ensuring the server shuts down in case of an unrecoverable error occurring, afaik these are the
> locations where we still have sys exit calls.



--
This message was sent by Atlassian JIRA
(v6.2#6252)