-
Notifications
You must be signed in to change notification settings - Fork 286
Remove deprecated mirrored queue majority check #1734
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
Comments
@mkuratczyk @MirahImage this issue is a bit awkward, because nothing prevents our users from putting rabbitmq 4.0 in the Arguably, mirror queues are a deprecated feature, and users should be moving from it. This may be an "incentive" to move out from CMQ. What do you think? |
To be honest I thought we made this command a no-op in RMQ, rather than removing it. That would make the transition much easier. We can always put it back as a no-op if we want. Alternatively, something like |
It means for now, we are not able to use the cluster-operator to move from 3.13.7 to 4.X RabbitMQ version ? |
I don't think it's ungracefully - I still see |
Not at all. You will be able to move from 3.13.x to 4.0.x. Everything will continue to work. By removing this check, the Pod will not halt shut down if there are unsynchronised mirror, which will cause some unavailability of CMQ. We will continue to drain the node, alleviating this because the node drain moves queue leaders to other nodes. |
The more I think about it, the more I lean towards: mirror queues are a deprecated feature, and users should be moving from it. This may be an "incentive" to move out from CMQ We've been overly generous with CMQ support, given plenty of notices and time to migrate to QQs. |
I've already submitted a PR that fixes this while still maintaining backwards compatibility with CMQs. Given how trivial it is, I don't mind solving the problem this way |
cluster-operator/internal/resource/statefulset.go
Lines 616 to 618 in 82415be
The command
rabbitmq-upgrade await_online_synchronized_mirror
is removed in 4.0. In order to support 4.0, we need to remove this check from the pre-stop hook, otherwise, the hook will always fail, and Kubernetes will ungracefully kill the Pod.From: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#hook-handler-execution
The text was updated successfully, but these errors were encountered: