ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-800

zoo_add_auth returns ZOK if zookeeper handle is in ZOO_CLOSED_STATE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.3.2, 3.4.0
    • Component/s: c client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This happened when I called zoo_add_auth() immediately after zookeeper_init(). It took me a while to figure out that authentication actually failed since zoo_add_auth() returned ZOK. It should return ZINVALIDSTATE instead.

      --Michi

      1. ZOOKEEPER-800.patch
        1 kB
        Michi Mutsuzaki

        Activity

        Mahadev konar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mahadev konar made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Resolution Fixed [ 1 ]
        Michi Mutsuzaki made changes -
        Status In Progress [ 3 ] Patch Available [ 10002 ]
        Michi Mutsuzaki made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Michi Mutsuzaki made changes -
        Attachment ZOOKEEPER-800.patch [ 12452267 ]
        Mahadev konar made changes -
        Assignee Mahadev konar [ mahadev ] Michi Mutsuzaki [ michim ]
        Mahadev konar made changes -
        Assignee Mahadev konar [ mahadev ]
        Patrick Hunt made changes -
        Field Original Value New Value
        Fix Version/s 3.3.2 [ 12315108 ]
        Fix Version/s 3.4.0 [ 12314469 ]
        Michi Mutsuzaki created issue -

          People

          • Assignee:
            Michi Mutsuzaki
            Reporter:
            Michi Mutsuzaki
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development