Skip to content

Remove deprecated mirrored queue majority check #1734

@Zerpet

Description

@Zerpet

fmt.Sprintf(" rabbitmq-upgrade await_online_quorum_plus_one -t %d &&"+
" rabbitmq-upgrade await_online_synchronized_mirror -t %d &&"+
" rabbitmq-upgrade drain -t %d",

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

If either a PostStart or PreStop hook fails, it kills the Container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions