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 2022/05/20 09:54:26 UTC

[GitHub] [iotdb] THUMarkLau commented on a diff in pull request #5633: [IOTDB-2964] Fix exception occurs when selecting cross space compaction task

THUMarkLau commented on code in PR #5633:
URL: https://github.com/apache/iotdb/pull/5633#discussion_r877964261


##########
server/src/main/java/org/apache/iotdb/db/engine/compaction/cross/rewrite/selector/RewriteCompactionFileSelector.java:
##########
@@ -167,6 +167,12 @@ void select(boolean useTightBound) throws IOException {
     while (unseqIndex < resource.getUnseqFiles().size() && timeConsumption < timeLimit) {
       // select next unseq files
       TsFileResource unseqFile = resource.getUnseqFiles().get(unseqIndex);
+      if (!unseqFile.getTsFile().exists()
+          || unseqFile.isCompacting()
+          || !unseqFile.isClosed()
+          || unseqFile.isCompactionCandidate()) {
+        break;
+      }

Review Comment:
   reoslve



-- 
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