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

zkpython leading to segfault on zookeeper server restart

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2.1, 3.2.2
    • Fix Version/s: None
    • Component/s: contrib-bindings
    • Labels:
      None
    • Environment:

      CentOS w/ Python 2.4

      Description

      Zookeeper client using zkpython segfaults on zookeeper server restart. It is reliably reproducible using the attached script zk.py.
      I'm able to stop segfault using the attached patch voyager.patch, but zkpython seems to have deeper issue on its use of watcher_dispatch - on zookeeper server restart, I see up to 6 invocation of watcher_dispatch while my script is simply sleeping in the main thread. This can't be right.

        Attachments

        1. zk.py
          1 kB
          Lei Zhang
        2. voyager.patch
          1 kB
          Lei Zhang

          Issue Links

            Activity

              People

              • Assignee:
                henryr Henry Robinson
                Reporter:
                voyager Lei Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: