ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1442

Uncaught exception handler should exit on a java.lang.Error

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4.3, 3.3.5
    • Fix Version/s: None
    • Component/s: java client, server
    • Labels:
      None

      Description

      The uncaught exception handler registered in NIOServerCnxnFactory and ClientCnxn simply logs exceptions and lets the rest of ZooKeeper go on its merry way. However, errors such as OutOfMemoryErrors should really crash the program, as they represent unrecoverable errors. If the exception that gets to the uncaught exception handler is an instanceof a java.lang.Error, ZK should exit with an error code (in addition to logging the error).

      1. ZOOKEEPER-1442.patch
        29 kB
        Jeremy Stribling
      2. ZOOKEEPER-1442.patch
        20 kB
        Jeremy Stribling
      3. ZOOKEEPER-1442.patch
        1 kB
        Jeremy Stribling

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jeremy Stribling
            Reporter:
            Jeremy Stribling
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development