RongtongJin commented on issue #1777: Question about 
org.apache.rocketmq.store.MappedFile#destroy
URL: https://github.com/apache/rocketmq/issues/1777#issuecomment-586907738
 
 
   It is not necessary to return writeBuffer. MappedFile reepresents the file 
on disk , writeBuffer in TransientStorePool is direct buffer to temporary 
writing, when all the content in writeBuffer commit to file, the writterBuffer 
will be returned (org.apache.rocketmq.store.MappedFile#commit). So when 
MappedFile is destroyed, the writeBuffer should already be returned.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to