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 Plain View
Zookeeper >> mail # user >> when the zookeeper Expired ,may I have to rebuild the watch on a znode?


+
iamct 2012-06-04, 02:41
+
Wangpei 2012-06-04, 04:01
+
iamct 2012-06-04, 06:37
+
iamct 2012-06-04, 06:36
+
Wangpei 2012-06-04, 10:44
+
iamct 2012-06-04, 14:45
+
李赫元 2012-06-04, 15:47
+
Patrick Hunt 2012-06-04, 22:24
+
iamct 2012-06-05, 08:25
Copy link to this message
-
Re: when the zookeeper Expired ,may I have to rebuild the watch on a znode?
The event is called "None" (not a great name) in Java API. It's for
notifying the watches that the session state has changed.

http://zookeeper.apache.org/doc/r3.4.1/api/org/apache/zookeeper/Watcher.Event.EventType.html

It's up to you to decide how to handle these events. This page
provides a good insight about error handling in zookeeper.

http://wiki.apache.org/hadoop/ZooKeeper/ErrorHandling

--Michi

On Tue, Jun 5, 2012 at 1:25 AM, iamct <[EMAIL PROTECTED]> wrote:
> Thank you all
> I have another question。
>
> I set a watch (getData)on a znode。the getData api said :
>  <p>
>     * If the watch is non-null and the call is successful (no exception is
>     * thrown), a watch will be left on the node with the given path. The
> watch
>     * will be triggered by a successful operation that sets data on the
> node, or
>     * deletes the node.
>     * <p>
>
> I used the method “Is there an easy way to expire a session for testing?” to
> imitate the expire
> (in https://cwiki.apache.org/confluence/display/ZOOKEEPER/FAQ���
>
> in the process,I can/t update the znode ,why the watch be triggered.
> I found the  WatchedEvent state is Disconnected and Expired.
>
> I can/t found the triggered condition in the zookeeper wiki and api. I am
> confuse.
>
> help me! Thank you !
>
>
>
>
>
>
>
> --
> View this message in context: http://zookeeper-user.578899.n2.nabble.com/when-the-zookeeper-Expired-may-I-have-to-rebuild-the-watch-on-a-znode-tp7577513p7577533.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.
+
iamct 2012-06-06, 02:56
+
Michi Mutsuzaki 2012-06-06, 07:23
+
Wangpei 2012-06-05, 01:55
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