Re: Does session expiration only happen during total ensemble failure or network split?

2009-01-07 Thread Kevin Burton
> > the case you mention, the session is not really expired unless the quorum > decides to expire it. So the client assuming that the session expired would > be wrong to say. It is possible that as soon as you bring up the servers, > the client reconnects with the same session and the session is s

Re: Does session expiration only happen during total ensemble failure or network split?

2009-01-07 Thread Patrick Hunt
Mahadev Konar wrote: Why would you want the session to expire if all the servers are down (which should not happen unless you kill all the nodes or the datacenter is down) ? A more likely case is that the client port on the switch dies and the client is partitioned from the servers... Patric

Re: Does session expiration only happen during total ensemble failure or network split?

2009-01-07 Thread Mahadev Konar
Kevin, the case you mention, the session is not really expired unless the quorum decides to expire it. So the client assuming that the session expired would be wrong to say. It is possible that as soon as you bring up the servers, the client reconnects with the same session and the session is stil

Re: Does session expiration only happen during total ensemble failure or network split?

2009-01-07 Thread Kevin Burton
> > The ZK ensemble leader expires the client session if it doesn't hear from > the client w/in the timeout specified by the client when the session was > established. > > A client will disconnect from a server in the ensemble and attempt > reconnect to another server in the ensemble if it doesn't

Re: Does session expiration only happen during total ensemble failure or network split?

2009-01-07 Thread Patrick Hunt
Kevin Burton wrote: From what I can tell, a session will only expire if it can't communicate with the ensemble due to the entire servers failing or the network splitting preventing a ZK node from seeing the servers. Correct? The ZK ensemble leader expires the client session if it doesn't hear

Does session expiration only happen during total ensemble failure or network split?

2009-01-06 Thread Kevin Burton
>From what I can tell, a session will only expire if it can't communicate with the ensemble due to the entire servers failing or the network splitting preventing a ZK node from seeing the servers. Correct? Then in this case, an application should in theory only care about session expiration and ZK