Re: Simpler ZooKeeper event interface....

2009-01-09 Thread Thomas Vinod Johnson
In the case of an active leader, L continues to send commands (whatever) to the followers. However a new leader L' has since been elected and is also sending commands to the followers. In this case it seems like either a) L should not send commands if it's not sync'd to the ensemble (and ho

Re: InterruptedException

2009-01-09 Thread Thomas Vinod Johnson
Kevin Burton wrote: On Thu, Jan 8, 2009 at 3:21 PM, Benjamin Reed wrote: InterruptedException is rather tricky because the semantics of Thread.isInterrupted() is rather vague. specifically, it is unclear why someone would interrupt a thread. usually Thread.interrupt() is used to shut things

Re: Reconnecting to another host on failure but before session expires...

2009-01-05 Thread Thomas Vinod Johnson
Kevin Burton wrote: The ZooKeeper constructor only takes a host and port... not a list of servers. The second constructor documents the host parameter as follows: @param host comma separated host:port pairs, each corresponding to a zk server. eg. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002

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 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 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 Thomas Vinod Johnson
g/hadoop-data/attachments/ZooKeeper(2f)ZooKeeperPresent ations/attachments/zk-talk-upc.pdf mahadev On 12/16/08 9:45 AM, "Thomas Vinod Johnson" wrote: What is the expected behavior if a server in a ZooKeeper service restarts with all its prior state lost? Empirically, everything seems to

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

NullPointerException stopping and starting Zookeeper servers

2008-12-08 Thread Thomas Vinod Johnson
Hi, I have a replicated zookeeper services consisting of 3 zookeeper (3.0.1) servers all running on the same host for testing purposes. I've created exactly one znode in this ensemble. At this point, I stop, then restart a single zookeeper server; moving onto the next one a few seconds later.