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

Switch to Plain View
Zookeeper >> mail # user >> how to set zookeeper session time to forever?

Copy link to this message
how to set zookeeper session time to forever?
Hi all,

I'm using ZooKeeper as an event system that sends notification. This is
done by creating a zooKeeper
object, and calling getChildren(). It works fine. However, the session time
concerns me, as it is an Integer,
and a session time with Integer.MAX_VALUE in java will timeout in about 25
days. I have to keep a thread
to refresh the connection to avoid it.

Is there a particular reason that a long is not used for the sessionTime?
or will it cause a problem if zooKeeper
wait forever?

Thank you.

Patrick Hunt 2011-12-07, 21:23