private void deletePreviousLogFileIfExists() throws IOException {
    File[] files = logFileDir.listFiles();
    if (files == null) {
      return;
    }
    for (File file : files) {
      if (repairProgressFileName.equals(file.getName())) {
        Files.deleteIfExists(file.toPath());
        return;
      }
    }
  }
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