|
|
-
SessionExpiredException. help!Yuhan Zhang 2011-09-23, 21:50
Hi all,
I set the sessionTimeout value to be "Integer.MAX_VALUE" to the constructor as zooKeeper = new ZooKeeper(host, Integer.MAX_VALUE, this); but reached an "session expired" exception when requesting a create operation twice on the following line: lockPath = zooKeeper.create( lockFolder + "/0", new byte[0], Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL_ SEQUENTIAL); Exception: org.apache.zookeeper.KeeperException$SessionExpiredException : KeeperErrorCode = Session expired for /_lock/0 why does this happen? could anyone give some advice? Thank you. Yuhan |