mirror of https://github.com/apache/druid.git
Merge pull request #477 from metamx/minor-cleanup
A few minor cleanups and fixes
This commit is contained in:
commit
807fff7697
|
@ -170,10 +170,9 @@ public class SelectQueryQueryToolChest extends QueryToolChest<Result<SelectResul
|
|||
++index;
|
||||
}
|
||||
|
||||
|
||||
final Set<String> metrics = Sets.newTreeSet();
|
||||
if (query.getMetrics() != null) {
|
||||
dimensions.addAll(query.getMetrics());
|
||||
metrics.addAll(query.getMetrics());
|
||||
}
|
||||
|
||||
final byte[][] metricBytes = new byte[metrics.size()][];
|
||||
|
|
|
@ -212,11 +212,6 @@ public class Announcer
|
|||
pathsToReinstate.add(path);
|
||||
}
|
||||
|
||||
for (ChildData data : cache.getCurrentData()) {
|
||||
log.info("Node[%s] in cache is removed to reinstate.", data.getPath());
|
||||
pathsToReinstate.remove(data.getPath());
|
||||
}
|
||||
|
||||
if (!pathsToReinstate.isEmpty() && !pathsLost.compareAndSet(null, pathsToReinstate)) {
|
||||
log.info("Already had a pathsLost set!?[%s]", parentPath);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue