You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/10/31 04:16:46 UTC
[iotdb] 02/02: rename time_partition to time_partition_interval_for_storage in system.properties
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch rename_time_partition
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit ada3317fe5823559768e8ecedccb4f800605fb0b
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Oct 31 12:13:34 2022 +0800
rename time_partition to time_partition_interval_for_storage in system.properties
---
.../src/main/java/org/apache/iotdb/it/env/MppConfig.java | 3 ++-
server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/integration-test/src/main/java/org/apache/iotdb/it/env/MppConfig.java b/integration-test/src/main/java/org/apache/iotdb/it/env/MppConfig.java
index 4ca0da71d6..e24496ffd1 100644
--- a/integration-test/src/main/java/org/apache/iotdb/it/env/MppConfig.java
+++ b/integration-test/src/main/java/org/apache/iotdb/it/env/MppConfig.java
@@ -80,7 +80,8 @@ public class MppConfig implements BaseConfig {
@Override
public BaseConfig setPartitionInterval(long partitionInterval) {
- engineProperties.setProperty("time_partition_interval_for_storage", String.valueOf(partitionInterval));
+ engineProperties.setProperty(
+ "time_partition_interval_for_storage", String.valueOf(partitionInterval));
return this;
}
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java
index d90e039f7f..bdb2e7f9f2 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java
@@ -189,7 +189,8 @@ public class IoTDBStartCheck {
systemProperties.put(IOTDB_VERSION_STRING, IoTDBConstant.VERSION);
systemProperties.put(TIMESTAMP_PRECISION_STRING, timestampPrecision);
- systemProperties.put(PARTITION_INTERVAL_STRING, String.valueOf(timePartitionIntervalForStorage));
+ systemProperties.put(
+ PARTITION_INTERVAL_STRING, String.valueOf(timePartitionIntervalForStorage));
systemProperties.put(TSFILE_FILE_SYSTEM_STRING, tsfileFileSystem);
systemProperties.put(ENABLE_PARTITION_STRING, String.valueOf(enablePartition));
systemProperties.put(TAG_ATTRIBUTE_SIZE_STRING, tagAttributeTotalSize);
@@ -377,7 +378,8 @@ public class IoTDBStartCheck {
throwException(ENABLE_PARTITION_STRING, enablePartition);
}
- if (Long.parseLong(properties.getProperty(PARTITION_INTERVAL_STRING)) != timePartitionIntervalForStorage) {
+ if (Long.parseLong(properties.getProperty(PARTITION_INTERVAL_STRING))
+ != timePartitionIntervalForStorage) {
throwException(PARTITION_INTERVAL_STRING, timePartitionIntervalForStorage);
}