caigy commented on issue #8017: URL: https://github.com/apache/rocketmq/issues/8017#issuecomment-2058233260
@bxfjb If you want to extend the size of `writeFileChannel` to make `FileChannel.transferTo()` successful, you may try writing a byte at `position - 1`: ```java writeFileChannel.write(ByteBuffer.wrap(new byte[]{0}), position - 1); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org