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:21:53 UTC
[GitHub] [iotdb] HTHou commented on a change in pull request #3795: [To rel/0.12][IOTDB-1578] IoTDBLoadExternalTsfileIT.loadUnsequenceTsfileTest CI Fix
HTHou commented on a change in pull request #3795:
URL: https://github.com/apache/iotdb/pull/3795#discussion_r698369993
##########
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:
Should we use computeIfAbsent to set the ArrayList back?
--
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