You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2023/05/24 13:51:57 UTC
[iotdb] branch tiered_storage updated: fix TTL check issue
This is an automated email from the ASF dual-hosted git repository.
xingtanzjr pushed a commit to branch tiered_storage
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/tiered_storage by this push:
new 2aa5a57c10f fix TTL check issue
2aa5a57c10f is described below
commit 2aa5a57c10f326e6d1fb0b807acfb398ea1a90bc
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Wed May 24 21:51:46 2023 +0800
fix TTL check issue
---
.../org/apache/iotdb/db/engine/migration/MigrationTaskManager.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/engine/migration/MigrationTaskManager.java b/server/src/main/java/org/apache/iotdb/db/engine/migration/MigrationTaskManager.java
index 53ea1a5ad4f..c9766aaa706 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/migration/MigrationTaskManager.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/migration/MigrationTaskManager.java
@@ -118,9 +118,9 @@ public class MigrationTaskManager implements IService {
// check tier ttl and disk space
long tierTTL =
DateTimeUtils.convertMilliTimeWithPrecision(
- commonConfig.getTierTTLInMs()[currentTier],
+ System.currentTimeMillis() - commonConfig.getTierTTLInMs()[currentTier],
iotdbConfig.getTimestampPrecision());
- if (tsfile.stillLives(tierTTL)) {
+ if (!tsfile.stillLives(tierTTL)) {
submitMigrationTask(
currentTier,
MigrationCause.TTL,