Skip to content

Quorum queues: skip decorator evalution for queues that do not have any - #17758

Merged
kjnilsson merged 1 commit into
mainfrom
rabbitmq-server-17702
Oct 8, 2026
Merged

kjnilsson merged 1 commit into
mainfrom
rabbitmq-server-17702

Conversation

@michaelklishin

Copy link
Copy Markdown
Collaborator

This is an efficiency improvement, both for CPU burn (runtime reductions) and publisher confirm latency, most notably the 95th and 99th percentiles.

The numbers reported in #17702 are reproducible
with this branch as well.

Close #17702.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

πŸ”΅ Needs a closer look

Queue-leader caching and notification changes need runtime validation and final human review.

0 open findings

What changed in this PR

Reduces quorum queue processing overhead by skipping decorator evaluation for queues without decorators, aiming to improve publisher confirm latency.

Changes:

  • Caches decorator presence and refreshes it on ticks, including for idle queues
  • Adds regression coverage for caching and runtime decorator registration
  • Uses a queue resource in the discard integration test
File Description
deps/​rabbit/​test/​rabbit_fifo_SUITE.erl Tests decorator caching and tick refresh
deps/​rabbit/​test/​rabbit_fifo_int_SUITE.erl Corrects the discard test’s queue resource
deps/​rabbit/​test/​quorum_queue_SUITE.erl Tests decorator notification on idle queues
deps/​rabbit/​test/​dummy_queue_decorator.erl Adds a test decorator
deps/​rabbit/​src/​rabbit_quorum_queue.erl Adds decorator-presence lookup
deps/​rabbit/​src/​rabbit_fifo.erl Caches decorator presence and skips unnecessary evaluation

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

This is an efficiency improvement, both for CPU burn
(runtime reductions) and publisher confirm latency,
most notably the 95th and 99th percentiles.

The numbers reported in #17702 are reproducible
with this branch as well.

Close #17702.
@kjnilsson
kjnilsson merged commit cd14112 into main Oct 8, 2026
197 checks passed
@kjnilsson
kjnilsson deleted the rabbitmq-server-17702 branch October 8, 2026 09:41
michaelklishin added a commit that referenced this pull request Oct 8, 2026
Quorum queues: skip decorator evalution for queues that do not have any (backport #17758)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants