You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/12/09 08:58:51 UTC

[GitHub] [rocketmq] xujianguo1 commented on issue #3253: RockerMQ-4.7.1 storeerror.log reprot too many errorlog "WARN FlushConsumeQueueService - Offset not matched"

xujianguo1 commented on issue #3253:
URL: https://github.com/apache/rocketmq/issues/3253#issuecomment-989644237


   这里应该是一个bug,或者说不影响rocketMQ的整体运行。
   刷MappedFile,分为 CommitLog 与consumeQueue, 
   CommitLog 因为存在最后的补写结束字符串操作,所以一定是offset < lastMappedfile.getFileFromOffset()+fileSize 的。
   consumeQueue,单个索引20,每个文件是固定的索引个数假设为X,文件最后也不存在补写内容,每次MappedFile文件不够的时候,是会申请2个映射文件,所有当第2X个消息写入 后, 第二个MappedFile文件刚好写满, 于是 offset = lastMappedfile.getFileFromOffset()+fileSize ,就会不停的打印警告日志,当继续写消息,生成新的MappedFile后,就不会打了。 我是设置了 消息数量50,debug的时候,发现的。  
   希望能够改进一下,毕竟非常影响排查问题
   


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org