Repository navigation
Add support for RabbitMQ 4.4 and Erlang 29 - #1
Open
gomoripeti wants to merge 5 commits into
Open
gomoripeti wants to merge 5 commits into
gomoripeti wants to merge 5 commits into
Conversation
Since RabbitMQ 4.4 broker version requirements are semver ranges, and `4.4.0` would only match that exact version. `4.4.x` matches the whole 4.4 series. Older brokers keep matching their own `X.Y.0` entries.
RabbitMQ 4.4 and main are tested upstream on Erlang/OTP 29 with Elixir 1.20, so build main with the same versions.
Elixir 1.20, needed for Erlang/OTP 29, warns about them. Cache and Common define no macros, so requiring them is not needed.
The Cache Manager stops Mnesia asynchronously on termination. Since Erlang/OTP 29 the application controller stops applications without blocking, so starting Mnesia while it is still stopping returns ok right away and Mnesia ends up stopped. The next test then failed with node_not_running.
gomoripeti
force-pushed
the
rabbitmq-4.4-erlang-29-support
branch
from
December 2, 2026 23:20
1b71228 to
642ff64
Compare
There was a problem hiding this comment.
🟢 Approved
No active review issues remain, with the version updates, CI coverage, and Mnesia shutdown synchronization addressed in the reviewed changes.
No open issues 🎉
What changed in this PR
Adds RabbitMQ 4.4 and Erlang/OTP 29 support, including version requirements, CI coverage, and an OTP 29 Mnesia test-race fix.
Changes:
- Supports RabbitMQ 4.4 and updates the default build version.
- Adds OTP 29/Elixir 1.20 CI coverage.
- Removes unused requirements and synchronizes Mnesia shutdown in tests.
| File | Description |
|---|---|
| test/cache_manager_test.exs | Waits for asynchronous Mnesia shutdown between tests. |
| mix.exs | Adds the RabbitMQ 4.4 version requirement. |
| Makefile | Defaults builds to RabbitMQ 4.4.x. |
| lib/rabbitmq_message_deduplication/rabbit_message_deduplication_queue.ex | Removes unused requirements. |
| lib/rabbitmq_message_deduplication/rabbit_message_deduplication_exchange.ex | Removes unused requirements. |
| lib/rabbitmq_message_deduplication/common.ex | Removes an unused requirement. |
| lib/rabbitmq_message_deduplication/cache_manager.ex | Removes an unused requirement. |
| .github/workflows/action.yml | Adds RabbitMQ 4.4 and OTP 29 CI coverage. |
Review effort: Lite
gomoripeti
marked this pull request as ready for review
December 2, 2026 23:50
This file contains hidden or 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
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.
Summary
Add support for RabbitMQ 4.4 and Erlang/OTP 29.
mix.exs: add4.4.xtobroker_version_requirements(see below).Makefile: default build tov4.4.x.v4.4.xon Erlang 29 / Elixir 1.20, and movemainto the same versions (RabbitMQ 4.4 and main are tested upstream on these).requires that Elixir 1.20 (needed for OTP 29) warns about.No RabbitMQ API changes in 4.4 affect the plugin (checked the modules and functions it calls against 4.3).
Broker version requirement format
RabbitMQ 4.4 parses
broker_version_requirementsas semver ranges (rabbit_semver_range). A plainX.Y.Znow matches only that exact version, so4.4.0would refuse 4.4.1 and later.4.4.xmatches the whole 4.4 series and nothing else.Brokers 3.13 to 4.3 still use the old logic (same major.minor, version >= requirement), so they keep matching their own
X.Y.0entries. I checked both sets of rules against the list:OTP 29 behaviour change
Since OTP 29 the application controller stops applications in a separate process instead of blocking. Calling
mnesia:start()while Mnesia is stopping now returnsokright away, and Mnesia ends up stopped. On OTP 27 the call waited for the stop to finish and then started Mnesia again.The CacheManager stops Mnesia asynchronously in
terminate/2, so the next CacheManager test failed withnode_not_running. The tests now wait for Mnesia to stop after each test.In production this only matters if the plugin or app is stopped and started again within milliseconds (
rabbit_supdoes not restart children), so the plugin code is unchanged.Testing
Locally, with RabbitMQ
v4.4.x, Erlang 29.1.3 and Elixir 1.20.5:cluster_SUITE3/3,exchange_SUITE7/7,queue_SUITE8/8,registration_SUITE2/2make dist MIX_ENV=prod DIST_AS_EZS=yesbuilds the.ezfiles.ezfiles in the RabbitMQ 4.4.1 generic-unix release: with4.4.0,rabbitmq-plugins enablefailed with "Plugin doesn't support current server version". With4.4.x, the plugin is enabled, its boot steps run and the exchange type is registered.Older versions run in CI only.
https://claude.ai/code/session_01HTxhzP4E6n8zMXA39fAs8J
Generated by Claude Code