You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by "Bae, Jae Hyeon" <me...@gmail.com> on 2012/12/05 19:26:41 UTC

changes in zkClient library

Could you share what changed in zkclient-20120522.jar?

I found that watchers were canceled when the zookeeper connection was
interrupted and reconnected with another application. If the new
zkclient-20120522 resolved this issue, I need to update this library
in my other projects.

I really appreciate

Thank you
Best, Jae

Re: changes in zkClient library

Posted by Neha Narkhede <ne...@gmail.com>.
That's right. Kafka 0.8 will require zkclient-0.2.

Thanks,
Neha

On Wed, Dec 5, 2012 at 11:25 AM, Jason Rosenberg <jb...@squareup.com> wrote:
> Ok,
>
> Sorry to beat a dead horse :)
>
> Are you saying that we can use zk 3.3.4 or newer, but still we need to
> include the zkclient-0.2.jar?
>
> Thanks,
>
> Jason
>
> On Wed, Dec 5, 2012 at 11:16 AM, Neha Narkhede <ne...@gmail.com>wrote:
>
>> Jason,
>>
>> I meant the former, and thanks to Otis, we now have the patched
>> version of zkclient in a public Maven repo -
>> http://search.maven.org/#artifactdetails|com.101tec|zkclient|0.2|jar
>>
>> Using zookeeper 3.3.4 and newer should work, AFAIK.
>>
>> Thanks,
>> Neha
>>
>> On Wed, Dec 5, 2012 at 11:13 AM, Jason Rosenberg <jb...@squareup.com> wrote:
>> > Neha,
>> >
>> > Are you saying that this is a custom mod to zkClient that is not in the
>> > public version, or one that exists in 3.3.5 and newer versions of the
>> > released zk client?
>> >
>> > If we use 3.3.5 or 3.3.6, should we be ok?
>> >
>> > Jason
>> >
>> > On Wed, Dec 5, 2012 at 10:41 AM, Neha Narkhede <neha.narkhede@gmail.com
>> >wrote:
>> >
>> >> Jae,
>> >>
>> >> We modified the zkclient read API to expose the zookeeper Stat object.
>> >> This is because we need to do conditional writes in some places in
>> >> Kafka. Exposing the Stat object allows us to read the previous version
>> >> of the zookeeper value, and we can use that to write the new value if
>> >> the expected version of the previous value is correct.
>> >>
>> >> Are you using zookeeper client 3.3.4 or older ?
>> >>
>> >> Thanks,
>> >> Neha
>> >>
>> >> On Wed, Dec 5, 2012 at 10:26 AM, Bae, Jae Hyeon <me...@gmail.com>
>> >> wrote:
>> >> > Could you share what changed in zkclient-20120522.jar?
>> >> >
>> >> > I found that watchers were canceled when the zookeeper connection was
>> >> > interrupted and reconnected with another application. If the new
>> >> > zkclient-20120522 resolved this issue, I need to update this library
>> >> > in my other projects.
>> >> >
>> >> > I really appreciate
>> >> >
>> >> > Thank you
>> >> > Best, Jae
>> >>
>>

Re: changes in zkClient library

Posted by Jason Rosenberg <jb...@squareup.com>.
Ok,

Sorry to beat a dead horse :)

Are you saying that we can use zk 3.3.4 or newer, but still we need to
include the zkclient-0.2.jar?

Thanks,

Jason

On Wed, Dec 5, 2012 at 11:16 AM, Neha Narkhede <ne...@gmail.com>wrote:

> Jason,
>
> I meant the former, and thanks to Otis, we now have the patched
> version of zkclient in a public Maven repo -
> http://search.maven.org/#artifactdetails|com.101tec|zkclient|0.2|jar
>
> Using zookeeper 3.3.4 and newer should work, AFAIK.
>
> Thanks,
> Neha
>
> On Wed, Dec 5, 2012 at 11:13 AM, Jason Rosenberg <jb...@squareup.com> wrote:
> > Neha,
> >
> > Are you saying that this is a custom mod to zkClient that is not in the
> > public version, or one that exists in 3.3.5 and newer versions of the
> > released zk client?
> >
> > If we use 3.3.5 or 3.3.6, should we be ok?
> >
> > Jason
> >
> > On Wed, Dec 5, 2012 at 10:41 AM, Neha Narkhede <neha.narkhede@gmail.com
> >wrote:
> >
> >> Jae,
> >>
> >> We modified the zkclient read API to expose the zookeeper Stat object.
> >> This is because we need to do conditional writes in some places in
> >> Kafka. Exposing the Stat object allows us to read the previous version
> >> of the zookeeper value, and we can use that to write the new value if
> >> the expected version of the previous value is correct.
> >>
> >> Are you using zookeeper client 3.3.4 or older ?
> >>
> >> Thanks,
> >> Neha
> >>
> >> On Wed, Dec 5, 2012 at 10:26 AM, Bae, Jae Hyeon <me...@gmail.com>
> >> wrote:
> >> > Could you share what changed in zkclient-20120522.jar?
> >> >
> >> > I found that watchers were canceled when the zookeeper connection was
> >> > interrupted and reconnected with another application. If the new
> >> > zkclient-20120522 resolved this issue, I need to update this library
> >> > in my other projects.
> >> >
> >> > I really appreciate
> >> >
> >> > Thank you
> >> > Best, Jae
> >>
>

Re: changes in zkClient library

Posted by Neha Narkhede <ne...@gmail.com>.
Jason,

I meant the former, and thanks to Otis, we now have the patched
version of zkclient in a public Maven repo -
http://search.maven.org/#artifactdetails|com.101tec|zkclient|0.2|jar

Using zookeeper 3.3.4 and newer should work, AFAIK.

Thanks,
Neha

On Wed, Dec 5, 2012 at 11:13 AM, Jason Rosenberg <jb...@squareup.com> wrote:
> Neha,
>
> Are you saying that this is a custom mod to zkClient that is not in the
> public version, or one that exists in 3.3.5 and newer versions of the
> released zk client?
>
> If we use 3.3.5 or 3.3.6, should we be ok?
>
> Jason
>
> On Wed, Dec 5, 2012 at 10:41 AM, Neha Narkhede <ne...@gmail.com>wrote:
>
>> Jae,
>>
>> We modified the zkclient read API to expose the zookeeper Stat object.
>> This is because we need to do conditional writes in some places in
>> Kafka. Exposing the Stat object allows us to read the previous version
>> of the zookeeper value, and we can use that to write the new value if
>> the expected version of the previous value is correct.
>>
>> Are you using zookeeper client 3.3.4 or older ?
>>
>> Thanks,
>> Neha
>>
>> On Wed, Dec 5, 2012 at 10:26 AM, Bae, Jae Hyeon <me...@gmail.com>
>> wrote:
>> > Could you share what changed in zkclient-20120522.jar?
>> >
>> > I found that watchers were canceled when the zookeeper connection was
>> > interrupted and reconnected with another application. If the new
>> > zkclient-20120522 resolved this issue, I need to update this library
>> > in my other projects.
>> >
>> > I really appreciate
>> >
>> > Thank you
>> > Best, Jae
>>

Re: changes in zkClient library

Posted by Jason Rosenberg <jb...@squareup.com>.
Neha,

Are you saying that this is a custom mod to zkClient that is not in the
public version, or one that exists in 3.3.5 and newer versions of the
released zk client?

If we use 3.3.5 or 3.3.6, should we be ok?

Jason

On Wed, Dec 5, 2012 at 10:41 AM, Neha Narkhede <ne...@gmail.com>wrote:

> Jae,
>
> We modified the zkclient read API to expose the zookeeper Stat object.
> This is because we need to do conditional writes in some places in
> Kafka. Exposing the Stat object allows us to read the previous version
> of the zookeeper value, and we can use that to write the new value if
> the expected version of the previous value is correct.
>
> Are you using zookeeper client 3.3.4 or older ?
>
> Thanks,
> Neha
>
> On Wed, Dec 5, 2012 at 10:26 AM, Bae, Jae Hyeon <me...@gmail.com>
> wrote:
> > Could you share what changed in zkclient-20120522.jar?
> >
> > I found that watchers were canceled when the zookeeper connection was
> > interrupted and reconnected with another application. If the new
> > zkclient-20120522 resolved this issue, I need to update this library
> > in my other projects.
> >
> > I really appreciate
> >
> > Thank you
> > Best, Jae
>

Re: changes in zkClient library

Posted by "Bae, Jae Hyeon" <me...@gmail.com>.
Thanks a lot for your answer.

I am using zookeeper-3.3.5.jar now.

On Wed, Dec 5, 2012 at 10:41 AM, Neha Narkhede <ne...@gmail.com> wrote:
> Jae,
>
> We modified the zkclient read API to expose the zookeeper Stat object.
> This is because we need to do conditional writes in some places in
> Kafka. Exposing the Stat object allows us to read the previous version
> of the zookeeper value, and we can use that to write the new value if
> the expected version of the previous value is correct.
>
> Are you using zookeeper client 3.3.4 or older ?
>
> Thanks,
> Neha
>
> On Wed, Dec 5, 2012 at 10:26 AM, Bae, Jae Hyeon <me...@gmail.com> wrote:
>> Could you share what changed in zkclient-20120522.jar?
>>
>> I found that watchers were canceled when the zookeeper connection was
>> interrupted and reconnected with another application. If the new
>> zkclient-20120522 resolved this issue, I need to update this library
>> in my other projects.
>>
>> I really appreciate
>>
>> Thank you
>> Best, Jae

Re: changes in zkClient library

Posted by "Bae, Jae Hyeon" <me...@gmail.com>.
Thanks a lot for your answer.

I am using zookeeper-3.3.5.jar now.

On Wed, Dec 5, 2012 at 10:41 AM, Neha Narkhede <ne...@gmail.com> wrote:
> Jae,
>
> We modified the zkclient read API to expose the zookeeper Stat object.
> This is because we need to do conditional writes in some places in
> Kafka. Exposing the Stat object allows us to read the previous version
> of the zookeeper value, and we can use that to write the new value if
> the expected version of the previous value is correct.
>
> Are you using zookeeper client 3.3.4 or older ?
>
> Thanks,
> Neha
>
> On Wed, Dec 5, 2012 at 10:26 AM, Bae, Jae Hyeon <me...@gmail.com> wrote:
>> Could you share what changed in zkclient-20120522.jar?
>>
>> I found that watchers were canceled when the zookeeper connection was
>> interrupted and reconnected with another application. If the new
>> zkclient-20120522 resolved this issue, I need to update this library
>> in my other projects.
>>
>> I really appreciate
>>
>> Thank you
>> Best, Jae

Re: changes in zkClient library

Posted by Neha Narkhede <ne...@gmail.com>.
Jae,

We modified the zkclient read API to expose the zookeeper Stat object.
This is because we need to do conditional writes in some places in
Kafka. Exposing the Stat object allows us to read the previous version
of the zookeeper value, and we can use that to write the new value if
the expected version of the previous value is correct.

Are you using zookeeper client 3.3.4 or older ?

Thanks,
Neha

On Wed, Dec 5, 2012 at 10:26 AM, Bae, Jae Hyeon <me...@gmail.com> wrote:
> Could you share what changed in zkclient-20120522.jar?
>
> I found that watchers were canceled when the zookeeper connection was
> interrupted and reconnected with another application. If the new
> zkclient-20120522 resolved this issue, I need to update this library
> in my other projects.
>
> I really appreciate
>
> Thank you
> Best, Jae

Re: changes in zkClient library

Posted by Neha Narkhede <ne...@gmail.com>.
Jae,

We modified the zkclient read API to expose the zookeeper Stat object.
This is because we need to do conditional writes in some places in
Kafka. Exposing the Stat object allows us to read the previous version
of the zookeeper value, and we can use that to write the new value if
the expected version of the previous value is correct.

Are you using zookeeper client 3.3.4 or older ?

Thanks,
Neha

On Wed, Dec 5, 2012 at 10:26 AM, Bae, Jae Hyeon <me...@gmail.com> wrote:
> Could you share what changed in zkclient-20120522.jar?
>
> I found that watchers were canceled when the zookeeper connection was
> interrupted and reconnected with another application. If the new
> zkclient-20120522 resolved this issue, I need to update this library
> in my other projects.
>
> I really appreciate
>
> Thank you
> Best, Jae