qiaojialin 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_r361054354
##########
File path:
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
##########
@@ -523,38 +644,51 @@ private TsFileProcessor createTsFileProcessor(boolean
sequence)
baseDir =
DirectoryManager.getInstance().getNextFolderForUnSequenceFile();
}
fsFactory.getFile(baseDir, storageGroupName).mkdirs();
- String filePath = baseDir + File.separator + storageGroupName +
File.separator +
- System.currentTimeMillis() + IoTDBConstant.TSFILE_NAME_SEPARATOR +
versionController
- .nextVersion() + IoTDBConstant.TSFILE_NAME_SEPARATOR + "0" +
TSFILE_SUFFIX;
+ String filePath =
+ baseDir + File.separator + storageGroupName + File.separator +
timeRangeId + File.separator
Review comment:
I wonder if this timeRangeId should be replaced by Date, which is meaningful
to users.
----------------------------------------------------------------
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