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

C Client: zookeeper_process doesn't invoke completion callback if zookeeper_close has been called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.3, 3.3.5
    • 3.3.6, 3.4.4, 3.5.0
    • c client
    • None
    • Reviewed

    Description

      In ZOOKEEPER-804, we added a check in zookeeper_process() to see if zookeeper_close() has been called. This was to avoid calling assert(cptr) on a NULL pointer, as dequeue_completion() returns NULL if the sent_requests queue has been cleared by free_completion() from zookeeper_close(). However, we should still call the completion if it is not NULL.

      Attachments

        1. ZOOKEEPER-1493.patch
          0.8 kB
          Michi Mutsuzaki
        2. ZOOKEEPER-1493_3_3.patch
          0.8 kB
          Michi Mutsuzaki
        3. ZOOKEEPER-1493_3_4.patch
          0.8 kB
          Michi Mutsuzaki

        Activity

          People

            michim Michi Mutsuzaki
            michim Michi Mutsuzaki
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: