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

RabbitMQ 4.0 compatibility #113

Merged
merged 3 commits into from
Oct 19, 2024
Merged

RabbitMQ 4.0 compatibility #113

merged 3 commits into from
Oct 19, 2024

Conversation

LoisSotoLopez
Copy link
Contributor

@LoisSotoLopez LoisSotoLopez commented Sep 30, 2024

Tested against rabbitmq/rabbitmq-server@8268a11

Fixes #112

@noxdafox
Copy link
Owner

Hello,

this breaks backwards compatibility with RMQ 3.X which we need to support for the foreseeable future.

@@ -1,12 +1,199 @@
# Inspired by erlang.mk bootstrap Makefile.
Copy link
Owner

Choose a reason for hiding this comment

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

Are changes to this file intentional or have they been included by mistake? You can instruct git to ignore changes to a file by doing: git update-index --assume-unchanged rabbitmq-components.mk.

Copy link
Contributor

Choose a reason for hiding this comment

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

this is indeed by mistake. I myself never looked at the content of the erlang.mk and rabbitmq-components.mk and assumed they have the "usual" content instead of a dynamic bootstrap Makefile.

@gomoripeti
Copy link
Contributor

hi @noxdafox

The few community plugins Im familiar with that are maintained by the Core Team have the logic that there is a new version for every minor RabbitMQ version. While this might not be necessary if there is no code change needed between major/minor versions, 3.13 did need a new version of the dedup plugin (message containers - #109 was not backwards compatible either) and 4.0 needs code change again. So 3.x can be supported by different versions of the plugin:

  • 0.6.2 works with 3.12
  • 0.6.3 works with 3.13
  • next version works with 4.0

It is possible to branch out, and 0.7.x works with 4.0 and 0.6.3+ can be patched further for 3.13.

Alternatively this PR can be made backwards compatible by keeping the removed versions of the callback functions around.

@noxdafox
Copy link
Owner

noxdafox commented Oct 1, 2024

RMQ 4.0.0 is a major, non-backwards compatible release. It will take quite a bit of time before users migrate to the new version as HA/Mirror queues are in widespread use and migrate them to Quorum ones will take time.

Therefore, it's better if we support 3.13.x for a while as several organizations will upgrade to the last 3.x version before doing the migration.

This shall be very simple in this case as the only necessary thing to do is to maintain both function signatures for a while.

mix.exs Outdated
@@ -19,7 +19,7 @@ defmodule RabbitMQ.MessageDeduplicationPlugin.Mixfile do
extra_applications: [:rabbit],
mod: {RabbitMQMessageDeduplication, []},
registered: [RabbitMQMessageDeduplication],
broker_version_requirements: ["3.13.0"]
broker_version_requirements: ["3.13.0-3.13.x", "4.0.0-4.0.x"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure about this syntax or whether that's an adequate config for the project. I just set the value that allowed me to enable the plugin on my manual tests (enabling the plugin).

@noxdafox
Copy link
Owner

Thanks! Will test these changes and make a new release.

@noxdafox noxdafox merged commit a3b2e38 into noxdafox:main Oct 19, 2024
0 of 2 checks passed
@gomoripeti gomoripeti deleted the 4_0 branch November 4, 2024 23:12
@gomoripeti
Copy link
Contributor

just wondering if the change was not tested yet (maybe because of lack of time which is totally understandable) or tagging a new release was only accidentally forgotten? (or maybe there are build issues again, I can try to help in that case)

@noxdafox
Copy link
Owner

noxdafox commented Nov 6, 2024

Slowly testing. Time is little. I will see if I can make a release this weekend.

@noxdafox
Copy link
Owner

New release is out. Thanks for the contribution!

@gomoripeti
Copy link
Contributor

thank you for the release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for rabbitmq 4.0.x
3 participants