Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper, mail # user - leader election


Copy link to this message
-
leader election
Ishaaq Chandy 2011-03-04, 00:04
Hi guys,

I was reading
http://hadoop.apache.org/zookeeper/docs/current/recipes.html#N102D0 and am
wondering if the instructions there are slightly wrong.

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;"

Regards,
Ishaaq
+
changbin.liu 2011-06-30, 13:50
+
Ted Dunning 2011-03-04, 00:36