Create subscriptionGroup through the command line and set the maximum number of retries for retryMaxTimes, which does not take effect:RocketMQ4.9.4 #6370
Unanswered
onejimmyboy
asked this question in
Q&A
Replies: 1 comment 6 replies
-
maxReconsumeTimesœ specified by the client takes precedence. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
create new group
./mqadmin updateSubGroup -b localhost:10911 -n localhost:9876 -r 1 -w 1 -s true -i 0 -c DefaultCluster -g test100
//consumer failed
DefaultMQPushConsumer consumer = new DefaultMQPushConsumer("group003",getAcl(),new AllocateMessageQueueAveragely());
consumer.setNamesrvAddr("localhost:9876");
consumer.subscribe("topic003","*");
consumer.registerMessageListener(new MessageListenerConcurrently() {
@OverRide
public ConsumeConcurrentlyStatus consumeMessage(List list,
ConsumeConcurrentlyContext consumeConcurrentlyContext) {
System.out.println("接收到的消息内容为:+"+ list);
return ConsumeConcurrentlyStatus.RECONSUME_LATER;
}
});
consumer.start();
What is expected to see?
Retry consumption 2 times
What did you see instead?
Retry consumption 16 times
Please tell us about your environment:
Rocketmq 4.9.4
After looking at the source code, it should be judged wrong here,

Although the maximum number of retries in the group is obtained here, it will be obtained from the header if the version is greater than 3.4.9. I don't know why this is done
Beta Was this translation helpful? Give feedback.
All reactions