bxfjb commented on issue #8017:
URL: https://github.com/apache/rocketmq/issues/8017#issuecomment-2063096678

   > @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);
   > ```
   
   Eventually I decide to use `MappedByteBuffer` for 
`FileChannel.transferFrom()`'s worse IO preformance in tests, could you pls 
review the #8036?


-- 
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

Reply via email to