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/11/26 09:56:48 UTC

[GitHub] [iotdb] qiaojialin commented on a change in pull request #4457: [IOTDB-1899] Fix stream closed exception during compaction

qiaojialin commented on a change in pull request #4457:
URL: https://github.com/apache/iotdb/pull/4457#discussion_r757368317



##########
File path: server/src/main/java/org/apache/iotdb/db/engine/compaction/CompactionTaskManager.java
##########
@@ -240,10 +244,18 @@ public void abortCompaction(String fullStorageGroupName) {
     }
   }
 
-  public int getTaskCount() {
+  public int getExecutingTaskCount() {
     return taskExecutionPool.getActiveCount() + taskExecutionPool.getQueue().size();
   }
 
+  public int getTotalTaskCount() {
+    return getExecutingTaskCount() + compactionTaskQueue.size();

Review comment:
       ```suggestion
       return getExecutingTaskCount() + candidateCompactionTaskQueue.size();
   ```




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