hexueyuan commented on issue #8859:
URL: https://github.com/apache/rocketmq/issues/8859#issuecomment-2463797363

   I did some testing locally and it turns out that this issue can cause 
written messages to not be consumed.
   
   In my case, i create duplicate commit log file 00000000000000001024 in 
different path as follows :
   
![image](https://github.com/user-attachments/assets/cf9be149-1619-486c-bb13-b76c813d9b66)
   
   When MappedFileQueue initializing, these four files (including duplicate 
files) will be loaded into mappedFiles, and a self-check error ERROR log will 
be printed in the checkSelf function.
   
![c8fa8f77de6a43d703faa805dae309ff](https://github.com/user-attachments/assets/32f5a77a-293b-438c-aa7c-fb239da7f6d2)
   
   What's more serious is that when using offset to find MappedFile, the first 
MappedFile will be returned. If this file is one of the empty files, it means 
that there is no message here, or it will cause a more serious system exception.
   
![2e4f331f8de32edf10d5b38dc11f335d](https://github.com/user-attachments/assets/49267ef4-66ff-4286-a295-8b4457958460)
   
   I haven't done more testing, so I'm not sure if this bug only affects 
consumption, but I think this issue has a big impact on system stability.
   


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