Skip to content

[Bug] LmqConsumerOffsetManager is not updated in enableSlaveActingMaster mode #9711

@1782935682

Description

@1782935682

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

centos7

RocketMQ version

5.3.3

JDK Version

1.8

Describe the Bug

主从模式下,启用enableSlaveActingMaster ,当master宕机后,客户端会从slave拉取消息并提交位点。
当master恢复后,会通过preOnline流程,反向同步slave的部分数据,包括消费进度。

在brokerController初始化中,dateVersion没有被更新,会导致master的版本一直领先slave,master无法同步到最新的消费进度

Image

实际使用的

Image 应该使用的 Image Image

Steps to Reproduce

1.启动1主1从
2,发送10条消息
3.kill master节点
4.从slave消费
5.启动master,查看消费进度

What Did You Expect to See?

master同步到最新消费进度

What Did You See Instead?

master没有同步消费进度

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions