ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-575

remove System.exit calls to make the server more container friendly

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.6.0
    • Component/s: server
    • Labels:
      None

      Description

      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.

      1. ZOOKEEPER-575_4.patch
        24 kB
        Mahadev konar
      2. ZOOKEEPER-575-3.patch
        32 kB
        Andrew Finnell
      3. ZOOKEEPER-575-2.patch
        2 kB
        Andrew Finnell
      4. ZOOKEEPER-575.patch
        32 kB
        Andrew Finnell

        Issue Links

          Activity

            People

            • Assignee:
              Andrew Finnell
              Reporter:
              Patrick Hunt
            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:

                Development