curator 2.4.0 and Announcer logging lines are added regarding infos of reinstating

This commit is contained in:
Jae Hyeon Bae 2014-02-09 22:26:18 -08:00
parent 38e9a79560
commit dca965a35a
2 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<metamx.java-util.version>0.25.3</metamx.java-util.version>
<apache.curator.version>2.3.0</apache.curator.version>
<apache.curator.version>2.4.0</apache.curator.version>
<druid.api.version>0.1.8</druid.api.version>
</properties>

View File

@ -207,10 +207,13 @@ public class Announcer
Set<String> pathsToReinstate = Sets.newHashSet();
for (String node : finalSubPaths.keySet()) {
pathsToReinstate.add(ZKPaths.makePath(parentPath, node));
String path = ZKPaths.makePath(parentPath, node);
log.info("Node[%s] is added to reinstate.", path);
pathsToReinstate.add(path);
}
for (ChildData data : cache.getCurrentData()) {
log.info("Node[%s] in cache is removed to reinstate.", data.getPath());
pathsToReinstate.remove(data.getPath());
}