You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2009/11/11 06:54:27 UTC

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

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
            Reporter: Patrick Hunt
             Fix For: 3.3.0


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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-575:
-----------------------------------

    Fix Version/s:     (was: 3.3.0)
                   3.4.0

> 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
>            Reporter: Patrick Hunt
>             Fix For: 3.4.0
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.