ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1483

Fix leader election recipe documentation

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.3
    • Fix Version/s: 3.4.4, 3.5.0
    • Component/s: documentation
    • Labels:
      None

      Description

      The leader election recipe documentation suggest that to avoid the herd effect a client process volunteering for leadership via child znode [i] under the leader election path [/leader] must only watch the the SMALLEST znode [j] from a different client process such that [j < i].

      This will NOT avoid the herd effect as many clients will end up watching the same znode[j] where j is the next-in-sequence number greater than the number of the current leader.

      Specifically in Step 3 of the Election procedure here http://zookeeper.apache.org/doc/trunk/recipes.html#sc_leaderElection

      This "where j is the SMALLEST sequence number" should be changed to this
      "where j is the LARGEST sequence number"

      1. ZOOKEEPER-1483-trunk.patch
        1 kB
        Michi Mutsuzaki
      2. ZOOKEEPER-1483-3.4.patch
        1 kB
        Michi Mutsuzaki

        Issue Links

          Activity

          Robert Varga made changes -
          Link This issue duplicates ZOOKEEPER-1404 [ ZOOKEEPER-1404 ]
          Mahadev konar made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Michi Mutsuzaki made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 3.4.4 [ 12319841 ]
          Fix Version/s 3.5.0 [ 12316644 ]
          Michi Mutsuzaki made changes -
          Attachment ZOOKEEPER-1483-3.4.patch [ 12544575 ]
          Attachment ZOOKEEPER-1483-trunk.patch [ 12544576 ]
          Michi Mutsuzaki made changes -
          Field Original Value New Value
          Assignee Michi Mutsuzaki [ michim ]
          Ankur created issue -

            People

            • Assignee:
              Michi Mutsuzaki
              Reporter:
              Ankur
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development