You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Jordan Zimmerman (JIRA)" <ji...@apache.org> on 2018/12/11 01:11:00 UTC

[jira] [Commented] (CURATOR-444) LeaderLatch sends events that leads to simultaneously leadership after blocking zookeeper peer communication

    [ https://issues.apache.org/jira/browse/CURATOR-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16715892#comment-16715892 ] 

Jordan Zimmerman commented on CURATOR-444:
------------------------------------------

[~borjab] I spent some time looking at this. You can reproduce this with Curator 4.x right? Also, have you changed the connectionStateErrorPolicy()? I'll continue looking but I cannot see how it's possible. 

> LeaderLatch sends events that leads to simultaneously leadership after blocking zookeeper peer communication
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: CURATOR-444
>                 URL: https://issues.apache.org/jira/browse/CURATOR-444
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Recipes
>    Affects Versions: 2.12.0, 4.0.0
>         Environment: Linux
>            Reporter: Borja Bravo Alférez
>            Assignee: Jordan Zimmerman
>            Priority: Critical
>         Attachments: blockZookeeperPort.sh
>
>
> How to reproduce the error:
> - 3 Zookeeper nodes. 
> - Using LeaderLatch recipe with a listener. 
> - We block the zookeeper network with the attached script. It blocks communication between zookeepers. Note that comunication is lost only for 10 seconds that is exactly our default session timeout. 
> Our curator configuration: 
> - Base sleep 100ms
> - Max sleep 5000ms
> - Default connection timeout 15000ms
> - Default Session timeout  10000ms
> I am working with a pull request. Fix seems trivial but creating the test not so much. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)