Fix cassandra timeseries dao install mode

This commit is contained in:
Igor Kulikov 2020-08-05 13:21:37 +03:00
parent aee7e09cab
commit e97edd61f2

View File

@ -108,13 +108,13 @@ public class CassandraBaseTimeseriesDao extends AbstractCassandraBaseTimeseriesD
super.startExecutor(); super.startExecutor();
if (!isInstall()) { if (!isInstall()) {
getFetchStmt(Aggregation.NONE, DESC_ORDER); getFetchStmt(Aggregation.NONE, DESC_ORDER);
Optional<NoSqlTsPartitionDate> partition = NoSqlTsPartitionDate.parse(partitioning); }
if (partition.isPresent()) { Optional<NoSqlTsPartitionDate> partition = NoSqlTsPartitionDate.parse(partitioning);
tsFormat = partition.get(); if (partition.isPresent()) {
} else { tsFormat = partition.get();
log.warn("Incorrect configuration of partitioning {}", partitioning); } else {
throw new RuntimeException("Failed to parse partitioning property: " + partitioning + "!"); log.warn("Incorrect configuration of partitioning {}", partitioning);
} throw new RuntimeException("Failed to parse partitioning property: " + partitioning + "!");
} }
} }