public void recordTask(AbstractCompactionTask task, Future<CompactionTaskSummary> summary) {
    storageGroupTasks
        .computeIfAbsent(
            getSgWithRegionId(task.getStorageGroupName(), task.getDataRegionId()),
            x -> new ConcurrentHashMap<>())
        .put(task, summary);
  }
Abort all compactions of a database. The running compaction tasks will be returned as a list,
the compaction threads for the database are interrupted immediately. The outer caller can use
function isAnyTaskInListStillRunning to determine whether the tasks in list are finished.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/schedule/CompactionTaskManager.java