String tableName = namespace.toLowerCase() + "." +
cConf.get(MetricsConstants.ConfigKeys.METRICS_TABLE_PREFIX,
MetricsConstants.DEFAULT_METRIC_TABLE_PREFIX) + ".ts." + resolution;
int ttl = cConf.getInt(MetricsConstants.ConfigKeys.RETENTION_SECONDS + "." + resolution + ".seconds", -1);
DatasetProperties props = ttl > 0 ?
DatasetProperties.builder().add(OrderedTable.PROPERTY_TTL, ttl).build() : DatasetProperties.EMPTY;
MetricsTable table = getOrCreateMetricsTable(tableName, props);
LOG.info("TimeSeriesTable created: {}", tableName);
return new TimeSeriesTable(table, entityCodecs.getUnchecked(namespace), resolution, getRollTime(resolution));
} catch (Exception e) {