{
if (!_zkClient.exists(path))
{
if (!createIfAbsent)
{
throw new PropertyStoreException("Can't update " + key
+ " since no node exists");
}
else
{
_zkClient.createPersistent(path, true);
}
}
_zkClient.updateDataSerialized(path, new ByteArrayUpdater(updater, _serializer));
}
catch (Exception e)
{
LOG.error("Exception in updatePropertyUntilSucceed(" + key + ", " + createIfAbsent
+ ")", e);
throw (new PropertyStoreException(e.toString()));
}
// update cache
// getProperty(key);
}