cacheValue.put(metric.getMetricName(), metric);
}</BUG>
value = new TimelineMetricsCacheValue(
metricCacheKey.getTemporalInfo().getStartTime(),
metricCacheKey.getTemporalInfo().getEndTime(),
<BUG>cacheValue, // Null or empty should prompt a refresh
</BUG>
Precision.getPrecision(metricCacheKey.getTemporalInfo().getStartTimeMillis(),
metricCacheKey.getTemporalInfo().getEndTimeMillis()) //Initial Precision
);

} catch (IOException io) {
LOG.debug("Caught IOException on fetching metrics. " + io.getMessage());
}
TimelineMetricsCacheValue value = null;
if (timelineMetrics != null && !timelineMetrics.getMetrics().isEmpty()) {
value = new TimelineMetricsCacheValue(
metricCacheKey.getTemporalInfo().getStartTime(),
metricCacheKey.getTemporalInfo().getEndTime(),
timelineMetrics, // Null or empty should prompt a refresh
Precision.getPrecision(metricCacheKey.getTemporalInfo().getStartTimeMillis(),
metricCacheKey.getTemporalInfo().getEndTimeMillis()) //Initial Precision
);
