@Override
  public long getEstimatedMemoryCost() {
    if (filesView.sourceFilesInCompactionPerformer.isEmpty()) {
      return 0;
    }
    return super.getEstimatedMemoryCost();
  }
Use inner compaction task to compact the partially_dirty files.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/SettleCompactionTask.java