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

Christopher Tubbs commented on ZOOKEEPER-4253:
----------------------------------------------

[~Damon], you seem to have created four separate JIRA issues for the same 
thing. Please limit yourself to one JIRA per issue. You can edit this issue 
(ZOOKEEPER-4253) if you need to make changes. You do not need to create any 
more issues. I have marked the others as duplicates of this one.

> I connected to ZooKeeper at different times, but I got the same session ID
> --------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-4253
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4253
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: java client
>    Affects Versions: 3.4.13
>            Reporter: Damon Liu
>            Priority: Major
>         Attachments: zookeeper.log
>
>
> I have an app AA connect to  zookeeper and register a temporary path such as 
> /brokers/ids/10,and I have another app BB also connect to zookeeper. At some 
> point, AA BB and ZooKeeper both restarted
> before restart:
> AA connect log in zk : [2021-03-07 08:47:43,468] INFO [SyncThread:0] 
> Established session {color:#FF0000}0x10000053ef90000{color} with negotiated 
> timeout 8000 for client /{color:#FF0000}22.20.0.45{color}:59966 
> (org.apache.zookeeper.server.ZooKeeperServer)
> after restart:
> BB connect log in zk:[2021-03-07 08:58:51,351] INFO [SyncThread:0] 
> Established session {color:#FF0000}0x10000053ef90000{color} with negotiated 
> timeout 30000 for client /{color:#FF0000}22.20.0.47{color}:39360 
> (org.apache.zookeeper.server.ZooKeeperServer)
>  
> I understand that when ZooKeeper restarts, the transaction log and snapshot 
> files will be loaded, and the old 
> session({color:#FF0000}0x10000053EF90000{color}) and the temporary path will 
> be loaded,If App BB gets the old session 
> {color:#FF0000}0x10000053EF90000{color}, the session will not expire, the 
> temporary path(/brokers/ids/10) will not be deleted, and App AA will not be 
> able to re-register the temporary path(/brokers/ids/10)。
> That's my question,looking forward to your help. Thank you.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to