Yuhan Zhang 2011-09-23, 21:50
I set the sessionTimeout value to be "Integer.MAX_VALUE" to the constructor
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,
KeeperErrorCode = Session expired for /_lock/0
why does this happen? could anyone give some advice?