curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <jordan.zimmer...@elastic.co>
Subject TreeCache wasDeleted()
Date Mon, 18 Jan 2016 19:09:38 GMT
Hi Scott,

In TreeCache wasDeleted(), there is a call to clear watchers. When was this added? I’m trying
to merge into CURATOR-3.0 and the new behavior would be to remove the watcher via the ZK API.
Is this correct or should the watcher stay? Please advise. The new code would be:

stat.getAndSet(null);
data.getAndSet(null);
client.watches().remove(this).ofType(WatcherType.Any).inBackground().forPath(path);	// NEW

Mime
View raw message