private void startRepairTask() throws IOException {
    if (hasPreviousTask && isPreviousTaskStopped) {
      // Restart the stopped task
      // 1. rename file to unmark stopped
      unmarkStopped();
      // 2. recover from previous log file
      recoverPreviousTask();
      return;
    }
    // Start a new repair task
    deletePreviousLogFileIfExists();
    createNewLogFile();
  }
Used for start a repair task. May restart a stopped repair task or create a new repair task.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/repair/RepairLogger.java