You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@curator.apache.org by Oliver Dain <od...@3cinteractive.com> on 2014/01/03 19:16:42 UTC

Compatible ZooKeeper versions

It appears that Curator isn't compatible with older versions of ZooKeeper. For example, if run with ZooKeeper 3.3 the LeaderLatch recipe never elects a leader though it works fine with 3.4.5. This isn't surprising or really a problem. However, we're using some ZooKeeper stuff to mediate our interactions with Kafka. Kafka ships with ZK 3.3 so every time a new developer at my company starts messing around with our code on their local machine they find it doesn't work. The LeaderLatch recipe doesn't throw an exception or anything to indicate that the version of ZK is old - the latch just never fires with an elected leader, so people keep debugging the same problem.

In the short term, I'm happy to add some code to our libraries that check the ZK version and throw an exception if it's too old I haven't been able to find documentation on the oldest supported ZooKeeper version however. Does anybody know what that is?

In the longer term, it seems like it'd be nice if the Curator library itself did the version check. Should I file a bug for that?

Thanks,
Oliver


Re: Compatible ZooKeeper versions

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
I actually don’t know. But, it uses APIs added since 3.4.x.

-Jordan

From: Oliver Dain Oliver Dain
Reply: Oliver Dain odain@3cinteractive.com
Date: January 3, 2014 at 1:38:58 PM
To: Jordan Zimmerman jordan@jordanzimmerman.com, user@curator.apache.org user@curator.apache.org
Subject:  Re: Compatible ZooKeeper versions  
Thanks Jordan. I wasn’t thinking of modify the Curator code itself – I was just planning to add that to our code. But I can take a look to see if it’s easy to do. 

I still need to know what version to check for. Do you know the oldest version of ZK with which curator is compatible?



From: Jordan Zimmerman <jo...@jordanzimmerman.com>
Date: Friday, January 3, 2014 at 10:26 AM
To: New User <od...@3cinteractive.com>, "user@curator.apache.org" <us...@curator.apache.org>
Subject: Re: Compatible ZooKeeper versions

Sure - that would be a nice addition. Please provide a patch too.

-JZ

From: Oliver Dain Oliver Dain
Reply: user@curator.apache.org user@curator.apache.org
Date: January 3, 2014 at 1:19:33 PM
To: user@curator.apache.org user@curator.apache.org
Subject:  Compatible ZooKeeper versions
In the longer term, it seems like it’d be nice if the Curator library itself did the version check. Should I file a bug for that?


Re: Compatible ZooKeeper versions

Posted by Oliver Dain <od...@3cinteractive.com>.
Thanks Jordan. I wasn't thinking of modify the Curator code itself - I was just planning to add that to our code. But I can take a look to see if it's easy to do.

I still need to know what version to check for. Do you know the oldest version of ZK with which curator is compatible?

[cid:7EB28F92-F6C9-44E6-A559-069427003CCC]

From: Jordan Zimmerman <jo...@jordanzimmerman.com>>
Date: Friday, January 3, 2014 at 10:26 AM
To: New User <od...@3cinteractive.com>>, "user@curator.apache.org<ma...@curator.apache.org>" <us...@curator.apache.org>>
Subject: Re: Compatible ZooKeeper versions

Sure - that would be a nice addition. Please provide a patch too.

-JZ

________________________________
From: Oliver Dain Oliver Dain<ma...@3cinteractive.com>
Reply: user@curator.apache.org<ma...@curator.apache.org> user@curator.apache.org<ma...@curator.apache.org>
Date: January 3, 2014 at 1:19:33 PM
To: user@curator.apache.org<ma...@curator.apache.org> user@curator.apache.org<ma...@curator.apache.org>
Subject:  Compatible ZooKeeper versions
In the longer term, it seems like it'd be nice if the Curator library itself did the version check. Should I file a bug for that?


Re: Compatible ZooKeeper versions

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
Sure - that would be a nice addition. Please provide a patch too.

-JZ

From: Oliver Dain Oliver Dain
Reply: user@curator.apache.org user@curator.apache.org
Date: January 3, 2014 at 1:19:33 PM
To: user@curator.apache.org user@curator.apache.org
Subject:  Compatible ZooKeeper versions  
In the longer term, it seems like it’d be nice if the Curator library itself did the version check. Should I file a bug for that?