[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713662#action_12713662
 ] 

Patrick Hunt commented on ZOOKEEPER-375:
----------------------------------------

have 2 servers, connect client to a server, add auth, create node add another 
auth, shutdown the server that the client is using, client
will switch to the other server, verify correct auth.


> zoo_add_auth only retains most recent auth on re-sync
> -----------------------------------------------------
>
>                 Key: ZOOKEEPER-375
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-375
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.1.0, 3.1.1
>            Reporter: Patrick Hunt
>            Assignee: Mahadev konar
>            Priority: Critical
>             Fix For: 3.2.0
>
>         Attachments: ZOOKEEPER-375.patch
>
>
> zoo_add_auth doesn't maintain a list of auths - it only stores the most 
> recent auth send to the server. As a result on re-sync to the cluster it will 
> lose (not reregister) any auths prior to the most recent.
> This code should maintain a list of auths similar to the java code. Be sure 
> to free the memory in close.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to