Re: odd error message

2010-04-20 Thread Mahadev Konar
Ok, I think this is possible. So here is what happens currently. This has been a long standing bug and should be fixed in 3.4 https://issues.apache.org/jira/browse/ZOOKEEPER-335 A newly elected leader currently doesn't log the new leader transaction to its database In your case, the follower

Re: Would this work?

2010-04-20 Thread Patrick Hunt
There are a small handful of cases where the server code will "system.exit". This is typically only if quorum communication fails in some weird, unrecoverable way. We've been working to remove this (mainly so zk can be deployed in a container) but there are still a few cases left. I don't see

Re: Would this work?

2010-04-20 Thread Ted Dunning
I can't comment on the details of your code (but I have run in-process ZK's in the past without problem) Operationally, however, this isn't a great idea. The problem is two-fold: a) firstly, somebody would probably like to look at Zookeeper to understand the state of your service. If the servic

odd error message

2010-04-20 Thread Ted Dunning
We have just done an upgrade of ZK to 3.3.0. Previous to this, ZK has been up for about a year with no problems. On two nodes, we killed the previous instance and started the 3.3.0 instance. The first node was a follower and the second a leader. All went according to plan and no clients seemed

Re: Would this work?

2010-04-20 Thread Mahadev Konar
Hi Avinash, This mostly looks like the zookeeper client is not able to find the zookeeper server running on the port that you have specified it on. Are you sure you are running zookeeper server on the port you are passing to the zookeeper client? You can check by running Echo stat| nc localhost

Re: Would this work?

2010-04-20 Thread Henry Robinson
Hi Avinash - It's definitely possible to have an in-process ZK server - I've done it - but it's not always easy. Are you passing a configuration file to QuorumPeerMain.main? Are there any errors when you run that method? I think, from recollection, that QPM.main should block in the standalone case

Would this work?

2010-04-20 Thread Avinash Lakshman
Hi All This may sound weird but I want to know if there is something inherent that would preclude this from working. I want to have a thrift based service which exposes some API to read/write to certain znodes. I want ZK to run within the same process. So I will start the ZK process from within my