RabbitMQ 4.0 doesn't include the mirroring-specific command rabbitmq-upgrade await_online_synchronized_mirror. Therefore, the preStop hook would fail on 4.0, leading to the maintenance mode not getting enabled at all (the moment a command fails in preStop, the shutdown process continues as if preStop completed).
This approach should make the Operator compatible with 3.x and 4.x.
RabbitMQ 4.0 doesn't include the mirroring-specific command
rabbitmq-upgrade await_online_synchronized_mirror
. Therefore, the preStop hook would fail on 4.0, leading to the maintenance mode not getting enabled at all (the moment a command fails in preStop, the shutdown process continues as if preStop completed).This approach should make the Operator compatible with 3.x and 4.x.
This closes #1734