fanhualta commented on a change in pull request #664: [IOTDB-333] Storage group
divide by time range
URL: https://github.com/apache/incubator-iotdb/pull/664#discussion_r360874506
##########
File path: server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
##########
@@ -293,6 +293,9 @@ private void loadProps() {
conf.setDefaultTTL(Long.parseLong(properties.getProperty("default_ttl",
String.valueOf(conf.getDefaultTTL()))));
+ // Time range for divide storage group
+ conf.setTimeRangeForStorageGroup(
+ Long.parseLong(properties.getProperty("storage_group_time_range",
String.valueOf(conf.getTimeRangeForStorageGroup()))));
Review comment:
I think it may be necessary to check whether the time range is valid. As you
say, the range can not change if it's not the first setup. So you can serialize
the range info into the disk and check when setup. You can refer to the
property `timestamp_precision`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services