zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: leader election
Date Fri, 04 Mar 2011 00:36:38 GMT
To help people who see differences as slowly as I do, the change suggested
is to change smallest to largest.

Clearly the smallest j is the oldest one and Ishaaq does seem to have found
an error in the statement of the algorithm.

On Thu, Mar 3, 2011 at 4:04 PM, Ishaaq Chandy <ishaaq@gmail.com> wrote:

> Step 3 of the first phase (creation of the znode) says:
>
> "Watch for changes on "ELECTION/n_j", where j is the smallest sequence
> number such that j < i and n_j is a znode in C;"
>
> Wouldn't this cause the herd effect? Shouldn't this be:
>
> "Watch for changes on "ELECTION/n_j", where j is the largest sequence
> number
> such that j < i and n_j is a znode in C;"
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message