Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1186

ZooKeeper client seems to hang quietly on OutOfMemoryError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.3.3
    • None
    • java client
    • None

    Description

      ZooKeeper client seems to hang quietly on OutOfMemoryError.

      Look at code of ClientCnxn.SendThread.run:

      void run() {
        while (zooKeeper.state.isAlive()) {
          try {
            ...
          } catch (Exception e) {
            // handle exception and restart
          }
        }
        ...
      }
      

      If OutOfMemoryError happens somewhere inside of try block, thread just exits and ZooKeeper hangs.

      Client should handle any Throwable same way it handles Exception.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yozh Stepan Koltsov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: