zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yuhan Zhang <yzh...@onescreen.com>
Subject SessionExpiredException. help!
Date Fri, 23 Sep 2011 21:50:41 GMT
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

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