oldZookeeper = zkConnection.getZookeeper();
LOG.info("After session expiry sessionId = " + oldZookeeper.getSessionId());
}
protected void simulateSessionExpiry(ZkClient zkClient) throws IOException, InterruptedException {
IZkStateListener listener = new IZkStateListener() {
@Override
public void handleStateChanged(KeeperState state) throws Exception {
LOG.info("In Old connection, state changed:" + state);
}