apache / rocketmq-client-go

Apache RocketMQ go client
https://rocketmq.apache.org/
Apache License 2.0
1.31k stars 424 forks source link

[ISSUE #1013] Fix: select one message queue of different broker when retry to send #1014

Closed cserwen closed 1 year ago

cserwen commented 1 year ago

What is the purpose of the change

fix #1013

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

cserwen commented 1 year ago

建议添加一些描述, 说明bug出现的场景和修复方法。方便大家review和理解代码逻辑

@francisoliverlee Hi, please see issue #1013.

twz915 commented 11 months ago

@cserwen

mq := p.selectMessageQueue(msg, lastBrokerName)

this is a bug, which should be

mq = p.selectMessageQueue(msg, lastBrokerName)

fixed https://github.com/apache/rocketmq-client-go/pull/1111/files#diff-66ce6ea3bd431c5246882c1e7f5e03cadf98171017e9f338bc5acdb703a3d579L332