@Override
    public void doWrite(ByteBuf src, long position) throws IOException {
        assert src.readableBytes() + position <= capacity();
        ByteBuffer[] nioBuffers = src.nioBuffers();
        for (ByteBuffer nioBuffer : nioBuffers) {
            int bytesWritten = write(nioBuffer, position);
            position += bytesWritten;
        }
    }
When set to true, the file should exist and the file size does not need to be verified.
s3stream/src/main/java/com/automq/stream/s3/wal/util/WALFileChannel.java