ZooKeeperUtil.setData(this, persistentTimestampZnode, ZooKeeperUtil.longToBytes(newTimestamp));
persistentTimestamp = newTimestamp;
break;
} catch (KeeperException e) {
if (i == connectRetryTimes) {
throw new ChronosException(
"Error to set persistent timestamp in ZooKeeper after retrying", e);
}
LOG.info("Exception to set persistent timestamp in ZooKeeper, retry " + (i + 1) + " times");
}
}