Skip to content

Commit

Permalink
STORM-1079. Fixed compilation erro and Logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
harshach committed Oct 12, 2015
1 parent 9a25ab7 commit fc03910
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ public Map<String, Object> getComponentConfiguration() {
conf = new Config();
}

if (conf.containsKey("topology.message.timeout.secs") && tickTupleInterval == 0) {
if (conf.containsKey("topology.message.timeout.secs") && flushIntervalSecs == 0) {
Integer topologyTimeout = Integer.parseInt(conf.get("topology.message.timeout.secs").toString());
flushIntervalSecs = (int)(Math.floor(topologyTimeout / 2));
LOG.debug("Setting flush interval to [" + flushIntervalSecs + "] based on topology.message.timeout.secs");
LOG.debug("Setting flush interval to [{}] based on topology.message.timeout.secs", flushIntervalSecs);
}

LOG.info("Enabling tick tuple with interval [" + flushIntervalSecs + "]");
LOG.info("Enabling tick tuple with interval [{}]", flushIntervalSecs);
conf.put(Config.TOPOLOGY_TICK_TUPLE_FREQ_SECS, flushIntervalSecs);
return conf;
}
Expand Down

0 comments on commit fc03910

Please sign in to comment.