final TimeValue ttl = ttlMapper.get(gran, rollupType);
if (ttl == null) {
log.warn("No valid TTL entry for granularity: " + gran + ", rollup type: " + rollupType.name()
+ " in config. Resorting to safe TTL values.");
throw new ConfigException("No TTL config found for granularity: " + gran
+ ", rollup type: " + rollupType.name());
}
return ttl;
}