public void setWritingFileWriter(RandomAccessFile writingFileWriter) {
      this.writingFileWriter = writingFileWriter;
      if (writingFileWriter == null) {
        LOGGER.info(
            "PipeConsensus-{}: TsFileWriter-{} set null writing file writer",
            consensusPipeName.toString(),
            index);
      }
    }
This method cannot be set to synchronize. Receive events can be concurrent since reqBuffer but
load event must be synchronized.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/pipeconsensus/PipeConsensusReceiver.java