You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/08/30 10:35:47 UTC
[GitHub] [iotdb] yschengzi commented on a change in pull request #3795: [To rel/0.12][IOTDB-1578] Fix load with time partition enable
yschengzi commented on a change in pull request #3795:
URL: https://github.com/apache/iotdb/pull/3795#discussion_r698378335
##########
File path: server/src/main/java/org/apache/iotdb/db/engine/compaction/level/LevelCompactionTsFileManagement.java
##########
@@ -191,13 +191,13 @@ private void deleteLevelFile(TsFileResource seqFile) {
List<TsFileResource> result = new ArrayList<>();
if (sequence) {
List<SortedSet<TsFileResource>> sequenceTsFileList =
- sequenceTsFileResources.get(timePartition);
+ sequenceTsFileResources.getOrDefault(timePartition, new ArrayList<>());
Review comment:
ok, computeIfAbsent is a better choice
--
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.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org