Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] In the same ConsumerGroup, the Consumer instances have different Topics subscribed to do not work on the 5.2.0 SDK #9078

Open
3 tasks done
ljw1264654273 opened this issue Dec 24, 2024 · 3 comments

Comments

@ljw1264654273
Copy link

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

OS:openEuler22.03(LTS-SP3)

RocketMQ version

version:rocketmq-all-5.3.1

JDK Version

Run:openjdk 1.8.0_432

Describe the Bug

In the same ConsumerGroup, the Consumer instances have different Topics subscribed to do not work on the 5.2.0 SDK.

Steps to Reproduce

I started two consumer instances with the same consumer group configuration, subscribing to different topics separately. However, the subscription relationship was inconsistent, resulting in chaotic and lost consumer messages. As described in the official documentation, the 5. x version SDK does not support consumer instances under the same consumer group subscribing to different topics.

What Did You Expect to See?

The 5.x version of the SDK supports Consumer instances in the same ConsumerGroup subscribing to different topics.

What Did You See Instead?

image
image
image

Additional Context

I developed in the springboot environment, version 2.7.18,and the version of rocketmq-spring-boot-starter is 2.3.0.

@qianye1001
Copy link
Contributor

consumers in the same group need to subscribe the same topics and tags or sql

@ljw1264654273
Copy link
Author

ljw1264654273 commented Dec 25, 2024

The official documentation states that version 5. x of the SDK now supports subscribing to different topics for Consumer instances under the same ConsumerGroup. But it doesn't work in my current environment.
image

@qianye1001
Copy link
Contributor

you can try grpc clients,maybe work5.x clients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants