You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "hexueyuan (via GitHub)" <gi...@apache.org> on 2024/11/08 05:30:09 UTC
Re: [I] [Bug] commitlogs in diffrent dir are the same name when set multiple dir(storePathCommitLog) [rocketmq]
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 :

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.

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.

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-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org