-
Notifications
You must be signed in to change notification settings - Fork 4k
Remove duplicated checks of vhost queue limit #11301
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
Remove duplicated checks of vhost queue limit #11301
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @SimonUnge for spotting and updating all the other places too!
The changed log message is no problem.
|
@ansd Thank you, I've updated the code to use a new atom for the limit error, with hopefully more unified error messages. |
|
I updated the code with a new protocol_error -> queue_limit_exceeded, and handle it in the code base. Not sure if we want the error code to change, and I felt a bit shaky added a new one to UPDATE: Actually felt too shaky messing with protocols like that, so I just did the mapping from queue_limit_exceeded to precondition_failed in rabbit_channel instead. |
eb2ac6f to
5a34379
Compare
|
Returning a Precondition Failed to the client when this limit is exceeded sounds perfectly fine to me simply because that's how most queue and stream declaration errors are communicated. |
|
@SimonUnge the Dialyzer failures seem legit and repeatable. |
UPDATE: Ah, missed adding a file, so should pass now. |
206eb48 to
3834914
Compare
…ype:declare Add new error return tuple when queue limit is exceed
3834914 to
ddd1976
Compare
ansd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @SimonUnge !
|
@SimonUnge @ansd AMQP 1.0 topology management does not exist in |
|
Yes, I'll take care of the backport. |
Proposed Changes
#11222 moved the check of vhost queue limit to
rabbit_queue_type:declare. I did miss that there are checks from other sources too, so I have updated those sources to reflect the changes. Basically removed the check, and handle the precondition error better.This 'might' have changed the logging msg some, which might or might not be OK?
Types of Changes
What types of changes does your code introduce to this project?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply.You can also fill these out after creating the PR.
If you're unsure about any of them, don't hesitate to ask on the mailing list.
We're here to help!
This is simply a reminder of what we are going to look for before merging your code.
CONTRIBUTING.mddocumentFurther Comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution
you did and what alternatives you considered, etc.