sync()

2011-08-30 Thread Jordan Zimmerman
When/why does sync() need to be called? I've searched the archive and the docs are non-existent. Any examples would be appreciated. -JZ

Re: sync()

2011-08-30 Thread Patrick Hunt
See this section of the programmers guide: http://zookeeper.apache.org/doc/r3.3.3/zookeeperProgrammers.html#ch_zkGuarantees specifically the section Simultaneously Consistent Cross-Client Views Patrick On Tue, Aug 30, 2011 at 9:52 AM, Jordan Zimmerman jzimmer...@netflix.com wrote: When/why

Re: sync()

2011-08-30 Thread Jordan Zimmerman
Thanks - if I understand correctly, this only applies to reads. Is that reads on data only (getData) or both data and a list of a Znode's children (getChildren)? On 8/30/11 10:07 AM, Patrick Hunt ph...@apache.org wrote: See this section of the programmers guide:

Re: sync()

2011-08-30 Thread Patrick Hunt
All reads. On Tue, Aug 30, 2011 at 10:12 AM, Jordan Zimmerman jzimmer...@netflix.com wrote: Thanks - if I understand correctly, this only applies to reads. Is that reads on data only (getData) or both data and a list of a Znode's children (getChildren)? On 8/30/11 10:07 AM, Patrick Hunt

Re: How zab avoid split-brain problem?

2011-08-30 Thread cheetah
Hi Alex, Thanks for the explanation. Then I have another question: If there are 7 machines in my current zookeeper clusters, two of them are failed. How can I reconfigure the Zookeeper to make it working with 5 machines? i.e if the master can get 3 machines' reply, it can commit the

RE: How zab avoid split-brain problem?

2011-08-30 Thread Alexander Shraer
Hi Peter, We're currently working on adding dynamic reconfiguration functionality to Zookeeper. I hope that it will get in to the next release of ZK (after 3.4). With this you'll just run a new zk command to add/remove any servers, change ports, change roles (followers/observers), etc.

Re: zk keeps disconnecting and reconnecting

2011-08-30 Thread Benjamin Reed
i have been wondering about 3.3.4. there are so many great bugs that were fixed in 3.4.0 that it isn't clear what we should put into 3.3.4 or if we should even do it. the chroot bug does seem like a good one to do a 3.3.4 release for. ben On Mon, Aug 29, 2011 at 12:45 PM, Mahadev Konar

Re: zk keeps disconnecting and reconnecting

2011-08-30 Thread Camille Fournier
If we think 3.4 is going to be stable I am cool with just doing a 3.4 release. If we are concerned with the stability of 3.4 though, we need to go through the bugfixes that were put in and figure out what should be in 3.3.4. A lot of them got put into both I think (1046 for example). C On Tue,

Re: NodeExistsException when creating a znode with sequential and ephemeral mode

2011-08-30 Thread Alex
Camille We applied the patch (ZOOKEEPER-1046-for333) to our SUT. There was no error. Thanks alex 2011년 8월 30일 오전 11:19, 박영근(Alex) alex.p...@nexr.com님의 말: We used 3.3.3. We will check out the latest code. Thanks Camille. Alex 2011/8/30 Camille Fournier cami...@apache.org More

Re: zk keeps disconnecting and reconnecting

2011-08-30 Thread Jun Rao
I was also wondering why our clients get disconnected in the first place since the ZK servers are all up. The following are the logs when the first disconnect happens. Does anyone know why the client can't seem to connect to most servers? Also, is Session 0x1320765b0ac002e for server nulll