Re: Understanding ZooKeeper data file management and LogFormatter

2010-11-01 Thread Vishal Kher
Hi Mahadev, I had submitted some small fixes to PurgeTxnLog in *ZOOKEEPER-872https://issues.apache.org/jira/browse/ZOOKEEPER-872 *. Can you or someone else take a look at it? Thanks. -Vishal On Mon, Sep 13, 2010 at 5:39 PM, Mahadev Konar maha...@yahoo-inc.comwrote: Hi Vishal, Usually the

Re: Getting a node exists code on a sequence create

2010-11-01 Thread Patrick Hunt
Hi Jeremy, this sounds like a bug to me, I don't think you should be getting the nodeexists when the sequence flag is set. Looking at the code briefly we use the parent's cversion (incremented each time the child list is changed, added/removed). Did you see this error each time you called

Re: Setting the heap size

2010-11-01 Thread Patrick Hunt
Actually if you are going to admin your own ZK it's probably a good idea to review that Admin doc fully. Some other good detail in there (backups and cleaning the datadir for example). Regards, Patrick On Fri, Oct 29, 2010 at 7:22 AM, Tim Robertson timrobertson...@gmail.com wrote: Great -

Re: Setting the heap size

2010-11-01 Thread Patrick Hunt
Actually if you are going to admin your own ZK it's probably a good idea to review that Admin doc fully. Some other good detail in there (backups and cleaning the datadir for example). Regards, Patrick On Fri, Oct 29, 2010 at 7:22 AM, Tim Robertson timrobertson...@gmail.com wrote: Great -

Re: Getting a node exists code on a sequence create

2010-11-01 Thread Jeremy Stribling
Thanks for the reply. It happened every time we called create, not just once. More than that, we tried restarting each of the nodes in the system (one-by-one), including the new master, and the problem continued. Unfortunately we cleaned everything up, and it's not in that state anymore.

Zookeeper leader stop and restart question

2010-11-01 Thread Ruifang Ge
Hi, I started a 5-node zookeeper cluster, then killed the leader (leader1). One of the other server became the new leader(leader2). After that, I restarted the former leader (leader1), and it failed to be connected from zkCli. Does anyone have some idea about this? Leader1: 2010-10-30

Re: Getting a node exists code on a sequence create

2010-11-01 Thread Jeremy Stribling
We were able to reproduce it. A stat on all three servers looks identical: [zk: ip:port(CONNECTED) 0] stat /zkrsm cZxid = 9 ctime = Mon Nov 01 13:01:57 PDT 2010 mZxid = 9 mtime = Mon Nov 01 13:01:57 PDT 2010 pZxid = 12884902218 cversion = 177 dataVersion = 0 aclVersion = 0 ephemeralOwner = 0

Re: Getting a node exists code on a sequence create

2010-11-01 Thread Benjamin Reed
how were you able to reproduce it? all the znodes in /zkrsm were created with the sequence flag. right? ben On 11/01/2010 02:28 PM, Jeremy Stribling wrote: We were able to reproduce it. A stat on all three servers looks identical: [zk:ip:port(CONNECTED) 0] stat /zkrsm cZxid = 9 ctime = Mon

Re: Zookeeper leader stop and restart question

2010-11-01 Thread Flavio Junqueira
Hi Ruifang, It is not clear to me if you verified that leader1 restarted correctly. Was it able to join the ensemble by following leader2?-FlavioOn Nov 1, 2010, at 8:09 PM, Ruifang Ge wrote:Hi,I started a 5-node zookeeper cluster, then killed the leader (leader1). One of the other server became

Re: Getting a node exists code on a sequence create

2010-11-01 Thread Jeremy Stribling
I think this is caused by stupid behavior on our application's part, and the error message just confused me. Here's what I think is happening. 1) 3 servers are up and accepting data, creating sequential znodes under /zkrsm. 2) 1 server dies, the other 2 continue creating sequential znodes.