From ee13f53eca3c61d750bda25a85176cf09d3113f1 Mon Sep 17 00:00:00 2001 From: Volodymyr Babak Date: Fri, 30 Jul 2021 14:38:33 +0300 Subject: [PATCH] Comment improve --- .../server/dao/timeseries/CassandraBaseTimeseriesDao.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dao/src/main/java/org/thingsboard/server/dao/timeseries/CassandraBaseTimeseriesDao.java b/dao/src/main/java/org/thingsboard/server/dao/timeseries/CassandraBaseTimeseriesDao.java index 6e7191b50c..466068533d 100644 --- a/dao/src/main/java/org/thingsboard/server/dao/timeseries/CassandraBaseTimeseriesDao.java +++ b/dao/src/main/java/org/thingsboard/server/dao/timeseries/CassandraBaseTimeseriesDao.java @@ -185,9 +185,9 @@ public class CassandraBaseTimeseriesDao extends AbstractCassandraBaseTimeseriesD if (isFixedPartitioning()) { return Futures.immediateFuture(null); } - // DO NOT apply custom to partition, otherwise short TTL will remove partition too early + // DO NOT apply custom to partition, otherwise, short TTL will remove partition too early // partitions must remain in the DB forever or be removed only by systemTtl - // removal of empty partition is too expensive (we need to scan all data keys for this partitions with ALLOW FILTERING) + // removal of empty partition is too expensive (we need to scan all data keys for these partitions with ALLOW FILTERING) long ttl = computeTtl(0); long partition = toPartitionTs(tsKvEntryTs); if (cassandraTsPartitionsCache == null) {