Re: Dose client read dirty data in zk release-3.5.4 ?

2018-06-18 Thread yuzhou li
Before learner receives the leader UPTODATE request, the loop run like this: case Leader.PROPOSAL: PacketInFlight pif = new PacketInFlight(); pif.hdr = new TxnHeader(); pif.rec = SerializeUtils.deserializeTxn(qp.getData(), pif.hdr);//deserialize data packetsNotCommitted.add(pif);//

Re: dynamic config file number

2018-06-18 Thread Alexander Shraer
The way it was implemented, is that the version (which is printed in your log, like version=1f001cc8d5) is not stored in the dynamic config file, but is actually part of its file name. It corresponds to the zxid at which the configuration was committed. You should never change that manually, or cop

Re: Kafka Failing to start due to existing ID

2018-06-18 Thread harish lohar
Just to update everyone, finally i was able to root cause the issue and it seems to be https://issues.apache.org/jira/browse/ZOOKEEPER-2901 which is related to node id being > 127. it's fixed in 3.5.4-beta and it works fine. Thanks Harish On Wed, Jun 13, 2018 at 7:42 AM Andor Molnar wrote:

Re: How to new quorum leader in ZK Cluster ( except from stat command)

2018-06-18 Thread Ansel Zandegran
Hi All, It would be really nice to have some other way. We have been using 4Letter (stat) command so far. It’s gonna be deprecated and we are going to be out of options. We are running in embedded mode in a environment where JMX and Jetty server are not allowed. It would be really nice if we co

dynamic config file number

2018-06-18 Thread oo4load
I had a problem getting dynamic reconfig to work on new / clean clusters, if I copied the zoo.cfg and zoo.cfg.dynamic.(number) file over from an older installation. Here's what happens: [zk: localhost:2181(CONNECTED) 2] config server.1=srv5703h:2888:3888:participant;0.0.0.0:2181 server.2=srv5703

Re: How to new quorum leader in ZK Cluster ( except from stat command)

2018-06-18 Thread Norbert Kalmar
Sorry, Enrico is right, the two methods I mentioned only gives information on themself, just checked. Regards, Norbert On Mon, Jun 18, 2018 at 3:37 PM Norbert Kalmar wrote: > Hi, > > You can also use AdminServer - jetty (unless you are using 3.4 - see > https://zookeeper.apache.org/doc/r3.5.0-a

Re: How to new quorum leader in ZK Cluster ( except from stat command)

2018-06-18 Thread Norbert Kalmar
Hi, You can also use AdminServer - jetty (unless you are using 3.4 - see https://zookeeper.apache.org/doc/r3.5.0-alpha/zookeeperAdmin.html#sc_adminserver ) or JMX ( http://zookeeper.apache.org/doc/r3.5.4-beta/zookeeperJMX.html#ch_reference ). (It can also be found in the logs of each instance) R

Re: How to new quorum leader in ZK Cluster ( except from stat command)

2018-06-18 Thread Enrico Olivelli
Hi, Unfortunately not, I need this feature as well. As soon as I have time I will work on patch, it will not be so difficult. Enrico Il giorno lun 18 giu 2018 alle ore 14:57 harish lohar ha scritto: > Hi, > > Is there a way to query on any follower node and find out about the leader > of the

How to new quorum leader in ZK Cluster ( except from stat command)

2018-06-18 Thread harish lohar
Hi, Is there a way to query on any follower node and find out about the leader of the ZK cluster. Thanks Harish