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

zkpython leading to segfault on zookeeper server restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.2.1, 3.2.2
    • None
    • contrib-bindings
    • None
    • 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. voyager.patch
          1 kB
          Lei Zhang
        2. zk.py
          1 kB
          Lei Zhang

        Issue Links

          Activity

            People

              henryr Henry Robinson
              voyager Lei Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: