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

Fix transient queue detection #12840

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

mkuratczyk
Copy link
Contributor

This fixes two separate issues in the same area:

  1. Invalid pattern leading to an incorrect warning about transient queues being used (because all durable queues were counted).
    Fixes "Deprecated features are being used" for transient_nonexcl_queues even when there are no transient queues in the cluster #12802

  2. A fresh deployment wouldn't boot with deprecated_features.permit.transient_nonexcl_queues = false
    Fixes Node runs into an exception failed_to_deny_deprecated_features on boot when try to deactivate deprecated feature #12793

This check fails on a virin node, because the metadata store
is not yet ready to handle the query. However, a virin
node by definition can't have any queues, so let's just return
false without asking.
This fixes the issue where RabbitMQ would warn about
transient queues being used in a cluster with no transient queues.

Fixes #12802
@michaelklishin michaelklishin added this to the 4.1.0 milestone Nov 27, 2024
Copy link
Member

@michaelklishin michaelklishin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have confirmed the effectiveness of this.

With both

deprecated_features.permit.transient_nonexcl_queues = true

and

deprecated_features.permit.transient_nonexcl_queues = false

the behavior is now what I'd expect: only transient, non-exclusive classic queues trigger a warning or, with the 2nd configuration file, the node refuses to perform the declaration.

Transient exclusive or durable queues do not trigger the warning and can be declared in both cases.

@michaelklishin michaelklishin merged commit 4e8098d into main Nov 27, 2024
271 of 272 checks passed
@michaelklishin michaelklishin deleted the fix-transient-queue-detection branch November 27, 2024 23:17
michaelklishin added a commit that referenced this pull request Nov 28, 2024
akarl pushed a commit to 0x4b53/amqp-rpc that referenced this pull request Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants