Skip to content

[Bug] RocketMQ consumer消费不到第一条消息 #7187

@zooah212

Description

@zooah212

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

CentOS Linux 7

RocketMQ version

5.1.3

JDK Version

JDK 8

Describe the Bug

全新的RocketMQ环境,里面没有Consumer和Topic。StringBoot项目集群RocketMQ5.1.3版本,首先启动Consumer,此时查看dashboard,能查到Consumer,Consumer要消费的Topic还没有创建;然后启动Producer,并发送一条消息,此时收不到第一条消息,然后Producer再发一条消息,Consumer能消费到消息;
ConsumeFromWhere:Last_Offset
消费模式:广播模式和集群模式都会由此现象
如果先发消息,再启动Consumer,广播消费模式会消费到之前的数据;集群消费模式,虽然在dashboard中看到消息的状态是已消费,但是在程序中Consumer还是没有收到消息,不知道消息被谁消费了;

Steps to Reproduce

看bug描述

What Did You Expect to See?

即使是全新的环境,先启动consumer,也能正常消费到数据。

What Did You See Instead?

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions