-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
when the brokers more than three. The problem of selectOneMessageQueue when send message #2223
Comments
import org.apache.rocketmq.client.common.ThreadLocalIndex; import java.util.ArrayList; public class MQTEST {
} |
public static MessageQueue selectOneMessageQueue(final String lastBrokerName) {
|
IMO, you are right. Could you submit a pull request to fix this issue? |
When there are three or more borkers in one topic's routeinfo ---
TopicPublishInfo, for example broker-001,broker-002,broker-003,Some times the
selected messagequeue list may be broker-001 broker-002 broker-001,rather than
broker-001 broker-002 broker-003.
When sending message to broker-001\broker-002 is timeout or other problem the send result will always be failed,and lose one chance to send broker-003. because it is
not set selected pos to sendWhichQueue's ThreadLocalIndex.
The text was updated successfully, but these errors were encountered: