RE: What happens when a server loses all its state?

2008-12-18 Thread Benjamin Reed
e.org Subject: Re: What happens when a server loses all its state? Thanks for all the responses. Benjamin Reed wrote: > Thomas, > > in the scenario you give you have two simultaneous failures with 3 nodes, so > it will not recover correctly. A is failed because it is not up. B has failed

Re: What happens when a server loses all its state?

2008-12-17 Thread Thomas Vinod Johnson
Thanks for all the responses. Benjamin Reed wrote: Thomas, in the scenario you give you have two simultaneous failures with 3 nodes, so it will not recover correctly. A is failed because it is not up. B has failed because it lost all its data. it would be good for ZooKeeper to not come up in

RE: What happens when a server loses all its state?

2008-12-17 Thread Krishna Sankar (ksankar)
recovery state. Cheers |-Original Message- |From: Benjamin Reed [mailto:br...@yahoo-inc.com] |Sent: Wednesday, December 17, 2008 11:48 AM |To: zookeeper-user@hadoop.apache.org |Subject: RE: What happens when a server loses all its state? | |Thomas, | |in the scenario you give you have

RE: What happens when a server loses all its state?

2008-12-17 Thread Benjamin Reed
From: thomas.john...@sun.com [thomas.john...@sun.com] Sent: Tuesday, December 16, 2008 4:02 PM To: zookeeper-user@hadoop.apache.org Subject: Re: What happens when a server loses all its state? Mahadev Konar wrote: > Hi Thomas, > > > > >> More ge

Re: What happens when a server loses all its state?

2008-12-17 Thread Thomas Vinod Johnson
Mahadev Konar wrote: Hi Thomas, Here is what would happen in the scenario you mentioned. Great - thanks Mahadev. Not to drag this on more than necessary, please bear with me for one more example of 'amnesia' that comes to mind. I have a set of ZooKeeper servers A, B, C. - C is currently no

Re: What happens when a server loses all its state?

2008-12-16 Thread Mahadev Konar
Hi Thomas, Here is what would happen in the scenario you mentioned. > Great - thanks Mahadev. > > Not to drag this on more than necessary, please bear with me for one > more example of 'amnesia' that comes to mind. I have a set of ZooKeeper > servers A, B, C. > - C is currently not running, A is

Re: What happens when a server loses all its state?

2008-12-16 Thread Thomas Vinod Johnson
Mahadev Konar wrote: Hi Thomas, More generally, is it a safe assumption to make that the ZooKeeper service will maintain all its guarantees if a minority of servers lose persistent state (due to bad disks, etc) and restart at some point in the future? Yes that is true. Great - t

Re: What happens when a server loses all its state?

2008-12-16 Thread Mahadev Konar
Hi Thomas, > More generally, is it a safe assumption to make that the ZooKeeper > service will maintain all its guarantees if a minority of servers lose > persistent state (due to bad disks, etc) and restart at some point in > the future? Yes that is true. mahadev > > Thanks. > Mahadev Konar

Re: What happens when a server loses all its state?

2008-12-16 Thread Thomas Vinod Johnson
Sorry, I should have been a little more explicit. At this point, the situation I'm considering is this; out of 3 servers, 1 server 'A' forgets its persistent state (due to a bad disk, say) and it restarts. My guess from what I could understand/reason about the internals was that the server 'A'

Re: What happens when a server loses all its state?

2008-12-16 Thread Mahadev Konar
Hi Thomas, If a zookeeper server loses all state and their are enough servers in the ensemble to continue a zookeeper service ( like 2 servers in the case of ensemble of 3), then the server will get the latest snapshot from the leader and continue. The idea of zookeeper persisting its state on d

What happens when a server loses all its state?

2008-12-16 Thread Thomas Vinod Johnson
What is the expected behavior if a server in a ZooKeeper service restarts with all its prior state lost? Empirically, everything seems to work*. Is this something that one can count on, as part of ZooKeeper design, or are there known conditions under which this could cause problems, either liv