-
Notifications
You must be signed in to change notification settings - Fork 11
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
Crash Loop Due To Posion Message Without Quorum Queues #35
Comments
This was referenced Dec 22, 2024
I've added two PRs that address this issue by
The logs from the above example now look like this:
Instead of the 4th processing attempt it logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you get a task that crashes the consumer, for example, due to a memory leak, the consumer will enter a crash loop that it is unable to recover from.
redeliver
property is set toTrue
, but it doesn't contain the number of deliveries.This can be prevented with the use of quorum queues, which keep track of the number deliveries with
x-delivery-count
and automatically drop or dead-letter a message if that count exceeds thedelivery-limit
setting.Here's a reproducible example:
Consumer/producer code:
docker-compose with a memory limit:
Logs showing the worker keeps trying to process the third message and crashing indefinitely.
The text was updated successfully, but these errors were encountered: