-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Make 'queue.declare' aware of virtual host DQT at validation time #11541
Merged
michaelklishin
merged 4 commits into
main
from
mk-rabbit_queue-virtual-host-default-aware
Jun 24, 2024
Merged
Make 'queue.declare' aware of virtual host DQT at validation time #11541
michaelklishin
merged 4 commits into
main
from
mk-rabbit_queue-virtual-host-default-aware
Jun 24, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
466f869
to
20decf6
Compare
20decf6
to
f3b7a34
Compare
Besides fixing a regression detected by priority_queue_SUITE, this introduces a drive-by change: rabbit_priority_queue: avoid an exception when max priority is a negative value that circumvented validation
e677048
to
2e5cb21
Compare
@Mergifyio backport v3.13.x |
✅ Backports have been created
|
michaelklishin
added a commit
that referenced
this pull request
Jun 24, 2024
…default-aware Make 'queue.declare' aware of virtual host DQT at validation time (cherry picked from commit 5de87aa) Conflicts: deps/rabbit/src/rabbit_queue_type.erl deps/rabbit/src/rabbit_vhost.erl
Backported to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DQT = default queue type.
Determining what queue type should be used is getting more and more involved.
It can come from four different places:
x-queue-type
argument value) or the HTTP APIrabbitmq.conf
"classic"
)In addition, there are two ways to specify a type:
"quorum"
rabbit_classic_queue
When a client provides no queue type, validation
should take the defaults (virtual host, global,
and the last resort fallback) into account
instead of considering the type to be "undefined".
References #11457 ##11528.