Repository navigation
Bump RabbitMQ container image to 4.3 and fix transient non-exclusive queue declarations in tests - #17148
Conversation
RabbitMQ 4.3 disables the deprecated transient_nonexcl_queues feature by default. Attempts to declare a queue that is simultaneously non-durable and non-exclusive are rejected with AMQP error 541 (INTERNAL_ERROR - Feature transient_nonexcl_queues is deprecated). Changes: - Bump RabbitMQContainerImageTags.Tag from 4.2 to 4.3 (ManagementTag derives automatically). - Update three test queue declarations to declare transient exclusive queues: - tests/Aspire.RabbitMQ.Client.Tests/ConformanceTests.cs (v6 sync path) - tests/Aspire.RabbitMQ.Client.Tests/ConformanceTests.cs (v7+ async path) - tests/Aspire.Hosting.RabbitMQ.Tests/RabbitMQFunctionalTests.cs (VerifyRabbitMQResource) - Add Queue declaration requirements (RabbitMQ 4.3+) callout to Aspire.Hosting.RabbitMQ/README.md and Aspire.RabbitMQ.Client/README.md pointing users at the upstream deprecation and the supported queue declaration patterns (durable / transient exclusive / durable with TTL). Production code paths in src/Aspire.Hosting.RabbitMQ and src/Components/Aspire.RabbitMQ.Client* do not declare queues, so no customer-facing API or behavior change. Customers whose own apps declare transient non-exclusive queues need to follow the upstream guidance in https://github.com/rabbitmq/rabbitmq-server/releases/tag/v4.3.0. Co-authored-by: Copilot <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 17148Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 17148" |
There was a problem hiding this comment.
Pull request overview
Bumps the default RabbitMQ container image from 4.2 to 4.3 and updates test queue declarations that relied on the now-disabled transient_nonexcl_queues feature. Also adds README guidance for customers about the deprecation.
Changes:
- Bump
RabbitMQContainerImageTags.Tagto4.3. - Update three test queue declarations (
exclusive: false→exclusive: true) to be 4.3-compatible. - Add "Queue declaration requirements (RabbitMQ 4.3+)" callouts in hosting and client READMEs.
Show a summary per file
| File | Description |
|---|---|
| src/Aspire.Hosting.RabbitMQ/RabbitMQContainerImageTags.cs | Bumps default image tag from 4.2 to 4.3 (management tag derives automatically) |
| src/Aspire.Hosting.RabbitMQ/README.md | Adds RabbitMQ 4.3 queue declaration guidance section |
| src/Components/Aspire.RabbitMQ.Client/README.md | Adds matching queue declaration guidance section |
| tests/Aspire.Hosting.RabbitMQ.Tests/RabbitMQFunctionalTests.cs | Switches VerifyRabbitMQResource queue to exclusive to satisfy 4.3 |
| tests/Aspire.RabbitMQ.Client.Tests/ConformanceTests.cs | Switches v6 sync + v7 async test queues to exclusive for 4.3 |
Copilot's findings
- Files reviewed: 5/5 changed files
- Comments generated: 0
- ConformanceTests: drop redundant 'exclusive: true' (the default in RabbitMQ.Client) - RabbitMQFunctionalTests: drop verbose explanatory comment block - Tests still pass on RabbitMQ 4.3 (exclusive defaults avoid transient_nonexcl_queues) Co-authored-by: Copilot <[email protected]>
Guidance lives in the PR description / release notes instead. Co-authored-by: Copilot <[email protected]>
The embedded API endpoint in KubernetesDeployWithRabbitMQTests declared a non-durable, non-exclusive queue which RabbitMQ 4.3 rejects with AMQP error 541 (transient_nonexcl_queues deprecation). Flip exclusive to true to match the same fix applied to the other test queue declarations. Co-authored-by: Copilot <[email protected]>
|
🎬 CLI E2E Test Recordings — 85 recordings uploaded (commit View all recordings
📹 Recordings uploaded automatically from CI run #25948359544 |
The default RabbitMQ container image used by AddRabbitMQ is now 4.3 (bumped in microsoft/aspire#17148). RabbitMQ 4.3 disables the deprecated transient_nonexcl_queues feature by default, so declaring queues that are simultaneously non-durable and non-exclusive is now rejected. Add a guidance section to the rabbitmq-host reference page describing the change and the supported queue declaration alternatives. Co-authored-by: Copilot <[email protected]>
|
Pull request created: #1003
|
|
📝 Documentation has been drafted in microsoft/aspire.dev#1003 targeting Added a "RabbitMQ 4.3 queue declaration requirements" section to Note This draft PR needs human review before merging. |
#1003) * docs: document RabbitMQ 4.3 transient non-exclusive queue deprecation The default RabbitMQ container image used by AddRabbitMQ is now 4.3 (bumped in microsoft/aspire#17148). RabbitMQ 4.3 disables the deprecated transient_nonexcl_queues feature by default, so declaring queues that are simultaneously non-durable and non-exclusive is now rejected. Add a guidance section to the rabbitmq-host reference page describing the change and the supported queue declaration alternatives. Co-authored-by: Copilot <[email protected]> * Address review feedback (2 threads) - PRRT_kwDOQK_VN86DWICc: Clarify RabbitMQ hosting versus client integration responsibilities and remove IBus. - PRRT_kwDOQK_VN86DWIC1: Align the TypeScript package example with Aspire 13.4 and add release-note migration guidance. - PRR_kwDOQK_VN88AAAABAccErQ: Add the RabbitMQ 4.3 migration cross-link and explicit heading anchor. Verified against microsoft/aspire@cc4b7ea on branch release/13.4. Edited per the doc-writer skill. Co-authored-by: Copilot <[email protected]> * Fix RabbitMQ heading anchor MDX parsing Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: aspire-repo-bot[bot] <268009190+aspire-repo-bot[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]> Co-authored-by: David Pine <[email protected]>
Description
The default RabbitMQ container image used by
AddRabbitMQis bumped from4.2to4.3. RabbitMQ 4.3 disables the deprecatedtransient_nonexcl_queuesfeature by default — declaring a queue that is simultaneously non-durable (transient) and non-exclusive is rejected by the broker with AMQP error 541 (INTERNAL_ERROR - Feature 'transient_nonexcl_queues' is deprecated.). This previously caused test failures in PR #17065 (which bumped a number of container image tags) and forced RabbitMQ to be reverted to4.2there.What this PR changes
RabbitMQContainerImageTags.Tagfrom4.2to4.3(ManagementTagderives automatically as4.3-management).tests/Aspire.RabbitMQ.Client.Tests/ConformanceTests.cs(v6 sync path and v7+ async path — shared withAspire.RabbitMQ.Client.v6.TestsviaCompile Include).tests/Aspire.Hosting.RabbitMQ.Tests/RabbitMQFunctionalTests.cs(VerifyRabbitMQResource).Customer-facing guidance for the deprecation lives in the "Notable change" section below (for release notes), not in the package READMEs.
Scope of impact
This is a test-only code change. Production code in
src/Aspire.Hosting.RabbitMQandsrc/Components/Aspire.RabbitMQ.Client*never declares queues — the integration only registersIConnection/IBusfor consumers and provides DI/configuration/telemetry/health checks; the user owns all queue topology. Playground samples (TestShop/OrderProcessor,TestShop/BasketService) already declare queues asdurable: true, exclusive: falseand are 4.3-safe.Notable change (for release notes / what's new)
The default RabbitMQ container image used by
AddRabbitMQis now4.3. As of RabbitMQ 4.3, the deprecatedtransient_nonexcl_queuesfeature is disabled by default — declaring a queue that is simultaneously non-durable and non-exclusive will be rejected by the broker (AMQP error 541). Customers whose own apps declare such queues should switch to one of the supported patterns:durable: true) — queue and its definition survive broker restarts.exclusive: true) — queue is auto-deleted when the declaring connection closes.See the RabbitMQ 4.3.0 release notes for upstream guidance.
Context
transient_nonexcl_queues, CQv1 queue args, and similar). That broader question is intentionally out of scope for this PR.Validation
Local test runs against the new
4.3image (Docker on Windows):tests/Aspire.Hosting.RabbitMQ.Tests— 56 / 56 passed (was failing onVerifyRabbitMQResource).tests/Aspire.RabbitMQ.Client.Tests(net10.0) — 45 / 49 passed, 4 unrelated skips (metrics-not-supported, localhost-default delay-validation).tests/Aspire.RabbitMQ.Client.v6.Tests(net10.0) — 37 / 41 passed, same 4 unrelated skips.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?