Skip to content
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

does the maxReconsumeTimes config really work? #2627

Closed
rickyEI opened this issue Jun 30, 2022 · 7 comments · Fixed by #2647
Closed

does the maxReconsumeTimes config really work? #2627

rickyEI opened this issue Jun 30, 2022 · 7 comments · Fixed by #2647

Comments

@rickyEI
Copy link

rickyEI commented Jun 30, 2022

i have config maxReconsumeTimes like below:

spring.cloud.stream.rocketmq.bindings.direct-in.consumer.push.maxReconsumeTimes = 2

anyway, it didn't work at all. Rocketmq still reconsume 16 times before sending message to dlq.
I cann't find config about setting 'maxReconsume' to DefaultMQPushConsumer either.

com.alibaba.cloud.stream.binder.rocketmq.integration.inbound.RocketMQConsumerFactory#initPushConsumer, here i find setting a DefaultMQPushConsumer. But i didn't find the initPushConsumer() method setting the maxReconsume to DefaultMQPushConsumer.

@yuhuangbin
Copy link
Collaborator

Welcome to contribute,refer: RocketMQConsumerFactory

@misselvexu
Copy link
Contributor

i will finish it 。

@Sorieee
Copy link
Contributor

Sorieee commented Jul 3, 2022

Subscribed

@Sorieee
Copy link
Contributor

Sorieee commented Jul 3, 2022

Plz try spring.cloud.stream.bindings.[destinationName].consumer.maxAttempts.

@Sorieee
Copy link
Contributor

Sorieee commented Jul 4, 2022

Plz try spring.cloud.stream.bindings.[destinationName].consumer.maxAttempts.

maxAttempts is a client behavior, maxReconsumeTimes maybe a server behavior

@misselvexu
Copy link
Contributor

Plz try spring.cloud.stream.bindings.[destinationName].consumer.maxAttempts.

maxAttempts is a client behavior, maxReconsumeTimes maybe a server behavior

Copy that,

@dyrnq
Copy link

dyrnq commented Oct 15, 2024

@yuhuangbin 2023.x branch missing this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants