fangzhiheng edited a comment on issue #2993:
URL: https://github.com/apache/rocketmq/issues/2993#issuecomment-864383860


   不知道算是DLedger库的问题,还是测试用例的问题,所以我把问题的原因及解决方案贴出来吧
   原因:
   
DLedgerMmapFileStore在关闭的时候,其内部的MmapFileList#dataFileList没有关闭它所持有的MmapFile#fileChannel
 及MmapFile#mappedByteBuffer,因此导致句柄无法回收。
   解决办法:
   可以在测试用例MessageStore#shutdown后,分别关闭FileChannel以及MappedByteBuffer即可。
   
   但是我认为可能是DLedger库的一个问题 :)
   


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


Reply via email to