Re: PoweredBy Zookeeper

2019-09-24 Thread Michael Han
link to the doc: https://github.com/apache/zookeeper/blob/master/zookeeper-docs/src/main/resources/markdown/zookeeperUseCases.md On Tue, Sep 24, 2019 at 4:36 AM Enrico Olivelli wrote: > Cool > > I am not sure, do we have to wait for 3.6 release before updating the > website? > > Enrico > > Il

Re: how session expire works in zookeeper codebase?

2019-09-24 Thread Michael Han
>> However, session could expire after connection established. Where is the latter case trigger? ZooKeeper checks every incoming request and the appertained session. When a session is expiring, all requests appertain to this session will fail session check and the responses generated will contain

Re: how session expire works in zookeeper codebase?

2019-09-24 Thread Zili Chen
Enrico, Well I think I understand how it works now and why you said it is a weird edge case >if the server/cluster is down the session cannot expire. If the server find a session expire, it will close the socket and the client will try to reconnect to the ensemble. While it successfully

Re: PoweredBy Zookeeper

2019-09-24 Thread Justin Ling Mao
1.Thanks Olivelli for this letter. ZOOKEEPER-3529 has now landed. 1.1 The references may be a good reading material and they're are public and free. welcome scrutiny. 1.2 The documentation has a declaration about intellectual property rights and privacy.2 If you have a use case, please do

Re: how session expire works in zookeeper codebase?

2019-09-24 Thread Zili Chen
Enrico, Thanks for your reply. Still I cannot understand how session expire detected on client side. The only codepath KeeperState.Expired generated is ClientCnxn#onConnected. It seems only called on client successfully connected to server. However, session could expire after connection

Re: how session expire works in zookeeper codebase?

2019-09-24 Thread Enrico Olivelli
Zili, Sessions expire in the server. If you are not connected to the cluster you cannot assume that the session is expired. There is another weird edge case: if the server/cluster is down the session cannot expire. Hope that helps Enrico Il mar 24 set 2019, 13:54 Zili Chen ha scritto: > Hi

how session expire works in zookeeper codebase?

2019-09-24 Thread Zili Chen
Hi ZooKeepers, I want to trace where Watcher.Event.KeeperState.Expired generated and it seems only generated when connect to server fails due to exceed session timeout. Besides, I find code snippet in ClientCnxn as below void queueEvent(String clientPath, int err, Set materializedWatchers,

Re: PoweredBy Zookeeper

2019-09-24 Thread Enrico Olivelli
Cool I am not sure, do we have to wait for 3.6 release before updating the website? Enrico Il mar 24 set 2019, 12:37 Justin Ling Mao ha scritto: > 1.Thanks Olivelli for this letter. ZOOKEEPER-3529 has now landed. 1.1 > The references may be a good reading material and they're are public and

test

2019-09-24 Thread 叶强
test