You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
macos 11.7.10
RocketMQ version
5.3.0
JDK Version
jdk 1.8
Describe the Bug
If multiple RocketMQ clusters are connected and autoBatch is enabled, messages may be sent to the wrong cluster if multiple clusters happen to have the same theme.
Steps to Reproduce
If I connect to multiple RocketMQ clusters on the same client and enable autoBatch, the topic name happens to be the same.
Messages may be sent to the wrong cluster
What Did You Expect to See?
The message should be sent to the correct cluster
What Did You See Instead?
When creating a Default MQProducer on the client side, an internal Producer Accumulator is initialized
Put the information into the accumulator table map, where key is the client ID and value is the created Producer Accumulator.
When initializing, it will first determine whether the Producer Accumulator has been created based on the client ID. But at this time, the user has not had the opportunity to set InstanceName or UnitName. So at this point, the client IDs within the same service are all the same.
So currently, multiple Default MQProducers created on the same client internally use the same produceAccumulator.
If the topic names of different clusters happen to be the same, it will be sent to the wrong cluster.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
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
macos 11.7.10
RocketMQ version
5.3.0
JDK Version
jdk 1.8
Describe the Bug
If multiple RocketMQ clusters are connected and autoBatch is enabled, messages may be sent to the wrong cluster if multiple clusters happen to have the same theme.
Steps to Reproduce
If I connect to multiple RocketMQ clusters on the same client and enable autoBatch, the topic name happens to be the same.

Messages may be sent to the wrong cluster

What Did You Expect to See?
The message should be sent to the correct cluster
What Did You See Instead?
When creating a Default MQProducer on the client side, an internal Producer Accumulator is initialized
Put the information into the accumulator table map, where key is the client ID and value is the created Producer Accumulator.
When initializing, it will first determine whether the Producer Accumulator has been created based on the client ID. But at this time, the user has not had the opportunity to set InstanceName or UnitName. So at this point, the client IDs within the same service are all the same.
So currently, multiple Default MQProducers created on the same client internally use the same produceAccumulator.
If the topic names of different clusters happen to be the same, it will be sent to the wrong cluster.
Additional Context
No response
The text was updated successfully, but these errors were encountered: