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

zkperl: _zk_release_watch doesn't remove items properly from the watch list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.3, 3.3.4, 3.4.0, 3.4.1, 3.4.2
    • 3.4.4, 3.5.0
    • contrib-bindings
    • None
    • Reviewed
    • zookeeper perl zkperl Net-ZooKeeper

    Description

      The doubly linked list of watches is not updated properly if a watch is taken out from the middle of the chain.
      The item after the item which is taken out will receive null pointer for the previous element! This will make the doubly linked list inconsistent and can lead to segfault or infinite loop when the doubly linked list is iterated later.

      Attachments

        1. ZOOKEEPER-1380.patch
          0.6 kB
          Botond Hejj

        Activity

          People

            botond.hejj Botond Hejj
            botond.hejj Botond Hejj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: