hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "ZooKeeper/ZooKeeperRecipes" by Flavio Junqueira
Date Wed, 23 Jul 2008 20:54:39 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The following page has been changed by Flavio Junqueira:
http://wiki.apache.org/hadoop/ZooKeeper/ZooKeeperRecipes

------------------------------------------------------------------------------
  Upon receiving a notification of znode deletion:
   1. Let ''C'' be the new set of children of ''ELECTION'';
   1. If ''z'' is the smallest node in ''C'', then execute leader procedure;
-  1. Otherwise, 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'';       
+  1. Otherwise, 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''; 
  
+ Note that the a znode having no preceding znode on the list of children does not imply that
the creator of this znode is aware that it is the current leader. Applications may consider
creating a separate to znode to acknowledge that the leader has executed the leader procedure.
     
+ 

Mime
View raw message