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

Prevent double-acking or acking on wrong channel in rabbitmq #429

Open
jeanetteclark opened this issue May 8, 2024 · 0 comments
Open

Prevent double-acking or acking on wrong channel in rabbitmq #429

jeanetteclark opened this issue May 8, 2024 · 0 comments
Milestone

Comments

@jeanetteclark
Copy link
Collaborator

After deploying on production a new rabbitmq issue popped up. I'm seeing some error messages that look like

 RabbitMQ connection error: channel is already closed due to channel error; protocol method:
 #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED -
 unknown delivery tag 1, class-id=60, method-id=80) [edu.ucsb.nceas.mdqengine.Worker:450]

SO says this usually happens because of double ack-ing, ack-ing on wrong channels or ack-ing messages that should not be ack-ed. I think that this is possibly double acking, but it could also be acking on the wrong channel, especially now that I have the system fixed so that rabbitmq can open connections/channels better if they get closed. Possibly what is happening is that a channel times out, so the connection gets closed, then a new channel/connection is opened and when trying to ack the message we hit the exception because it is the wrong channel.

@jeanetteclark jeanetteclark added this to the 3.1 milestone May 21, 2024
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

No branches or pull requests

1 participant