Skip to content

GH-2939: Rely on custom AmqpHeaders.RETRY_COUNT for server retries #3019

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

Closed
wants to merge 2 commits into from

Conversation

artembilan
Copy link
Member

Fixes: #2939

The RabbitMQ 4.0 does not deal with client side x-* headers. Therefore, an x-death.count is not incremented anymore when message is re-published from client back to the broker.

  • Spring AMQP 3.2 has introduced an AmqpHeaders.RETRY_COUNT custom header. Use messageProperties.incrementRetryCount() in the RabbitMessageChannelBinder when we re-published message back to the broker for server-side retries
  • Fix docs respectively

…ver retries

Fixes: spring-cloud#2939

The RabbitMQ 4.0 does not deal with client side `x-*` headers.
Therefore, an `x-death.count` is not incremented anymore when
message is re-published from client back to the broker.

* Spring AMQP 3.2 has introduced an `AmqpHeaders.RETRY_COUNT` custom header.
Use `messageProperties.incrementRetryCount()` in the `RabbitMessageChannelBinder`
when we re-published message back to the broker for server-side retries
* Fix docs respectively
@artembilan
Copy link
Member Author

NOTE: this might fail for a while until Spring Cloud could bring for us Spring AMQP and Spring Integration SNAPSHOTs.

@olegz olegz closed this in c96a62f Oct 17, 2024
@olegz olegz added this to the 4.2.0-RC1 milestone Oct 17, 2024
@artembilan artembilan deleted the GH-2939 branch October 30, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Add delivery attempt count to RabbitMQ DLQ messages
2 participants