hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srikanth Bondalapati:" <sbondalap...@tagged.com>
Subject Regarding the process method of Watcher Interface
Date Mon, 19 Jul 2010 21:37:25 GMT

I have a class (X) that implements the Watcher Interface. Consider, an
instance of 'X' is registered as a callback object for different Znode
changes. Now, If there are several simultaneous changes that happen on these
registered znodes, then will these events be fired by the zookeeper to
callback object sequentially or should I have to synchronize the process()
method of Watcher interface in order to handle these events sequentially?
Suppose, I have synchronized the process method(), then will the events
fired by zookeeper be missed by the callback object when some other event is
being processed? Or, does the zookeeper ensures that all the events are
finally reached and handled by the callback object?

Thanks & Regards,

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