RongtongJin opened a new issue, #9834:
URL: https://github.com/apache/rocketmq/issues/9834

   ### Before Creating the Enhancement Request
   
   - [x] I have confirmed that this should be classified as an enhancement 
rather than a bug/feature.
   
   
   ### Summary
   
   
   Currently, `IndexStoreFile` always uses `ByteBuffer` (MappedByteBuffer) for 
writing operations, even when `writeWithoutMmap` is enabled in the store 
configuration. This prevents users from using FileChannel-based writing in 
IndexStoreFile, which can be beneficial in certain scenarios where mmap is not 
desired.
   
   ### Motivation
   
   Currently, `IndexStoreFile` always uses `ByteBuffer` (MappedByteBuffer) for 
writing operations, even when `writeWithoutMmap` is enabled in the store 
configuration. This prevents users from using FileChannel-based writing in 
IndexStoreFile, which can be beneficial in certain scenarios where mmap is not 
desired.
   
   ### Describe the Solution You'd Like
   
   When `writeWithoutMmap` is enabled in `MessageStoreConfig`, `IndexStoreFile` 
should use `FileChannel` for all write operations instead of `ByteBuffer`.
   
   ### Describe Alternatives You've Considered
   
   No
   
   ### Additional Context
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to