curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chao chu <chuchao...@gmail.com>
Subject Re: Real world usage of the recipe LeaderLatch
Date Fri, 28 Jun 2013 15:03:39 GMT
Hi Eric,

Thanks for your sharing, by looking into your code, it's not very clear to
me that how do you handle the 'SUSPEND' or 'LOST' events of LeaderLatch?
Could you please shed some lights here? Thanks


On Wed, Jun 26, 2013 at 11:52 PM, Eric Tschetter <echeddar@gmail.com> wrote:

> ChuChao,
>
> We use it in the Druid project (http://www.github.com/metamx/druid/)
>
> You can see its use in the class com.metamx.druid.master.DruidMaster
>
> The class has a bunch of other stuff in it as well that is not specific to
> the LeaderLatch, but you can just ignore that and see how it handles the
> latch.
>
> --Eric
>
>
> On Wednesday, June 26, 2013, chao chu wrote:
>
>> Thanks a lot for your reply. Could you please name a few open source
>> projects that used LeaderLatch if you are aware of any? I'd like to take a
>> look at the code.
>>
>> btw, What about issues reported in the links I mentioned? are they actual
>> bugs or just used in an unexpected way?
>>
>>
>>
>> On Wed, Jun 26, 2013 at 7:29 AM, Jordan Zimmerman <
>> jordan@jordanzimmerman.com> wrote:
>>
>>> Curator is being used at major companies (i.e. Netflix, eBay, etc.).
>>> Bugs are quickly fixed when reported. In particular, LeaderLatch is widely
>>> used.
>>>
>>> -JZ
>>>
>>>
>>> On Jun 25, 2013, at 11:03 AM, chao chu <chuchao333@gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I have been trying to use the LeaderLatch to implement Leader Election
>>> in my project and had written some scripts to simulate the situations when
>>> the zk ensemble become unstable due to network problems. It worked well and
>>> as expected so far.
>>>
>>> However, by digging into both zookeeper-users and curator-users mailing
>>> lists, there are indeed some bugs/edge cases reported, like
>>> LeaderLatch bug causing extra znodes appearing in Zookeeper<https://groups.google.com/forum/?fromgroups#!searchin/curator-users/LeaderLatch/curator-users/to8ViZp6p-E/xYbKbzqkZQYJ>
>>>  and multiple participants thought they are leader<https://listserv.netflix.com/pipermail/curator-users/2012-October/000201.html>
which
>>> worried me about the reliability of this.
>>>
>>> So, my question is that: are there any real world projects are using
>>> this recipe which have proved the quality of it, or are there any other
>>> known edge cases or open issues?
>>>
>>>
>>> Thanks & Regards,
>>>
>>> --
>>> ChuChao
>>>
>>>
>>>
>>
>>
>> --
>> ChuChao
>>
>


-- 
ChuChao

Mime
View raw message