[ROCKETMQ-101]Fix possible NullPointerException when retry in send Async way#63
[ROCKETMQ-101]Fix possible NullPointerException when retry in send Async way#63Jaskey wants to merge 1 commit into
Conversation
2 similar comments
|
This issue is valid and the bug will be triggered under the following conditions:
The PR, IMO, is not good as it simply disabled promised retry attempts without notice. Instead of logging retry failure, retry sending should be done against the original chosen broker. |
|
@lizhanhui , # 4 is not the nessary conditions, since even it is not enble, the tpInfo's method is still used. Besides, if topic route info is null which propably means user is send through my seletor method, resend should still respect user's seletor, so the same chosen broker is not enough, the same chosen queue is needed too, which may be another issue. I guess it is not a very minal effort, since the existing interface does not record any chosen queue info. |
|
Yes, #4 is not required as MQFaultStrategy#92 may also generate NPE. |
|
@lizhanhui @zhouxinyu , please review the updated pr |
|
Looks good. |
|
Looks good, please @vongosling help review. |
|
@vongosling @lizhanhui @zhouxinyu This bug is crucial and easy to reproduce which makes sending message with seletor is not reliable at all. When can this pr be merged and release the fix version? |
|
@Jaskey You are right, I'll follow up and merge this PR ASAP. |
|
LGTM~ |
|
@Jaskey I'll merge this PR soon. Please close this issue. |
|
Thank you @vongosling @lizhanhui @zhouxinyu |
|
@lizhanhui @Jaskey we'd better close after merge :-) |
2 similar comments
|
Merged |
JIRA: https://issues.apache.org/jira/browse/ROCKETMQ-101