private void recoverPreviousTask() throws FileNotFoundException {
    if (!hasPreviousTask) {
      return;
    }
    this.needRecoverFromLogFile = true;
    if (!isPreviousTaskStopped) {
      this.logStream = new FileOutputStream(logFile, true);
    }
  }
Used for recovering StorageEngine or recovering stopped repair task
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/repair/RepairLogger.java