Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> leader election


Copy link to this message
-
leader election
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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB