@Override
  public void close() throws IOException {
    if (logStream != null) {
      logStream.getFD().sync();
      logStream.close();
    }
  }
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