Sentinel: fix regression requiring "+failover" ACL in failover path#2780
Merged
hwware merged 1 commit intovalkey-io:unstablefrom Oct 31, 2025
Merged
Sentinel: fix regression requiring "+failover" ACL in failover path#2780hwware merged 1 commit intovalkey-io:unstablefrom
hwware merged 1 commit intovalkey-io:unstablefrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #2780 +/- ##
============================================
+ Coverage 72.44% 72.46% +0.01%
============================================
Files 128 128
Lines 70145 70145
============================================
+ Hits 50819 50833 +14
+ Misses 19326 19312 -14
🚀 New features to boost your workflow:
|
Contributor
|
Do we need to backport this PR to Valkey 9.0? |
Contributor
Author
@hwware Yes, we should. Please let me know if I can help here (PR into the |
gmbnomis
added a commit
to gmbnomis/valkey-doc
that referenced
this pull request
Oct 28, 2025
* Add documentation for the new coordinated failover command * Update ACL documentation to reflect version 9.0 requirements. Use the ACL from the `sentinel.config` as a basis for consistency (see also valkey-io/valkey#2780) * Point out that ACL permissions need to be updated for Redis 9.0+ Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
gmbnomis
added a commit
to gmbnomis/valkey-doc
that referenced
this pull request
Oct 28, 2025
* Add documentation for the new coordinated failover command * Update ACL documentation to reflect version 9.0 requirements. Use the ACL from the `sentinel.config` as a basis for consistency (see also valkey-io/valkey#2780) * Point out that ACL permissions need to be updated for Redis 9.0+ Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
gmbnomis
added a commit
to gmbnomis/valkey-doc
that referenced
this pull request
Oct 28, 2025
* Add documentation for the new coordinated failover command * Update ACL documentation to reflect version 9.0 requirements. Use the ACL from the `sentinel.config` as a basis for consistency (see also valkey-io/valkey#2780) * Point out that ACL permissions need to be updated for Redis 9.0+ Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
gmbnomis
added a commit
to gmbnomis/valkey-doc
that referenced
this pull request
Oct 29, 2025
* Add documentation for the new coordinated failover command * Update ACL documentation to reflect version 9.0 requirements. Use the ACL from the `sentinel.config` as a basis for consistency (see also valkey-io/valkey#2780) * Point out that ACL permissions need to be updated for Redis 9.0+ Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Since Valkey Sentinel 9.0, sentinel tries to abort an ongoing failover when changing the role of a monitored instance. Since the result of the command is ignored, the "FAILOVER ABORT" command is send irrespective of the actual failover status. However, when using the documented pre 9.0 ACLs for a dedicated sentinel user, the FAILOVER command is not allowed and _all_ failover cases fail. (Additionally, the necessary ACL adaptation was not communicated well.) Address this by: - Updating the documentation in "sentinel.conf" to reflect the need for an adapted ACL - Only abort a failover when sentinel detected an ongoing (probably stuck) failover. This means that standard failover and manual failover continue to work with unchanged pre 9.0 ACLs. Only the new "SENTINEL FAILOVER COORDINATED" requires to adapt the ACL on all Valkey nodes. - Actually use a dedicated sentinel user and ACLs when testing standard failover, manual failover, and manual coordinated failover. Fixes valkey-io#2779 Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
hwware
approved these changes
Oct 29, 2025
zhijun42
pushed a commit
to zhijun42/valkey
that referenced
this pull request
Nov 15, 2025
…alkey-io#2780) Since Valkey Sentinel 9.0, sentinel tries to abort an ongoing failover when changing the role of a monitored instance. Since the result of the command is ignored, the "FAILOVER ABORT" command is sent irrespective of the actual failover status. However, when using the documented pre 9.0 ACLs for a dedicated sentinel user, the FAILOVER command is not allowed and _all_ failover cases fail. (Additionally, the necessary ACL adaptation was not communicated well.) Address this by: - Updating the documentation in "sentinel.conf" to reflect the need for an adapted ACL - Only abort a failover when sentinel detected an ongoing (probably stuck) failover. This means that standard failover and manual failover continue to work with unchanged pre 9.0 ACLs. Only the new "SENTINEL FAILOVER COORDINATED" requires to adapt the ACL on all Valkey nodes. - Actually use a dedicated sentinel user and ACLs when testing standard failover, manual failover, and manual coordinated failover. Fixes valkey-io#2779 Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
zhijun42
pushed a commit
to zhijun42/valkey
that referenced
this pull request
Nov 15, 2025
…alkey-io#2780) Since Valkey Sentinel 9.0, sentinel tries to abort an ongoing failover when changing the role of a monitored instance. Since the result of the command is ignored, the "FAILOVER ABORT" command is sent irrespective of the actual failover status. However, when using the documented pre 9.0 ACLs for a dedicated sentinel user, the FAILOVER command is not allowed and _all_ failover cases fail. (Additionally, the necessary ACL adaptation was not communicated well.) Address this by: - Updating the documentation in "sentinel.conf" to reflect the need for an adapted ACL - Only abort a failover when sentinel detected an ongoing (probably stuck) failover. This means that standard failover and manual failover continue to work with unchanged pre 9.0 ACLs. Only the new "SENTINEL FAILOVER COORDINATED" requires to adapt the ACL on all Valkey nodes. - Actually use a dedicated sentinel user and ACLs when testing standard failover, manual failover, and manual coordinated failover. Fixes valkey-io#2779 Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
enjoy-binbin
pushed a commit
to valkey-io/valkey-doc
that referenced
this pull request
Nov 26, 2025
* Add documentation for the new coordinated failover command * Update ACL documentation to reflect version 9.0 requirements. Use the ACL from the `sentinel.config` as a basis for consistency (see also valkey-io/valkey#2780) * Point out that ACL permissions need to be updated for Redis 9.0+ This option was introduced by valkey-io/valkey#1292 and is part of Valkey 9.0 Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
zhijun42
pushed a commit
to zhijun42/valkey
that referenced
this pull request
Nov 28, 2025
…alkey-io#2780) Since Valkey Sentinel 9.0, sentinel tries to abort an ongoing failover when changing the role of a monitored instance. Since the result of the command is ignored, the "FAILOVER ABORT" command is sent irrespective of the actual failover status. However, when using the documented pre 9.0 ACLs for a dedicated sentinel user, the FAILOVER command is not allowed and _all_ failover cases fail. (Additionally, the necessary ACL adaptation was not communicated well.) Address this by: - Updating the documentation in "sentinel.conf" to reflect the need for an adapted ACL - Only abort a failover when sentinel detected an ongoing (probably stuck) failover. This means that standard failover and manual failover continue to work with unchanged pre 9.0 ACLs. Only the new "SENTINEL FAILOVER COORDINATED" requires to adapt the ACL on all Valkey nodes. - Actually use a dedicated sentinel user and ACLs when testing standard failover, manual failover, and manual coordinated failover. Fixes valkey-io#2779 Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
zhijun42
pushed a commit
to zhijun42/valkey
that referenced
this pull request
Nov 28, 2025
…alkey-io#2780) Since Valkey Sentinel 9.0, sentinel tries to abort an ongoing failover when changing the role of a monitored instance. Since the result of the command is ignored, the "FAILOVER ABORT" command is sent irrespective of the actual failover status. However, when using the documented pre 9.0 ACLs for a dedicated sentinel user, the FAILOVER command is not allowed and _all_ failover cases fail. (Additionally, the necessary ACL adaptation was not communicated well.) Address this by: - Updating the documentation in "sentinel.conf" to reflect the need for an adapted ACL - Only abort a failover when sentinel detected an ongoing (probably stuck) failover. This means that standard failover and manual failover continue to work with unchanged pre 9.0 ACLs. Only the new "SENTINEL FAILOVER COORDINATED" requires to adapt the ACL on all Valkey nodes. - Actually use a dedicated sentinel user and ACLs when testing standard failover, manual failover, and manual coordinated failover. Fixes valkey-io#2779 Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
zhijun42
pushed a commit
to zhijun42/valkey
that referenced
this pull request
Nov 28, 2025
…alkey-io#2780) Since Valkey Sentinel 9.0, sentinel tries to abort an ongoing failover when changing the role of a monitored instance. Since the result of the command is ignored, the "FAILOVER ABORT" command is sent irrespective of the actual failover status. However, when using the documented pre 9.0 ACLs for a dedicated sentinel user, the FAILOVER command is not allowed and _all_ failover cases fail. (Additionally, the necessary ACL adaptation was not communicated well.) Address this by: - Updating the documentation in "sentinel.conf" to reflect the need for an adapted ACL - Only abort a failover when sentinel detected an ongoing (probably stuck) failover. This means that standard failover and manual failover continue to work with unchanged pre 9.0 ACLs. Only the new "SENTINEL FAILOVER COORDINATED" requires to adapt the ACL on all Valkey nodes. - Actually use a dedicated sentinel user and ACLs when testing standard failover, manual failover, and manual coordinated failover. Fixes valkey-io#2779 Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
zuiderkwast
pushed a commit
to zuiderkwast/placeholderkv
that referenced
this pull request
Dec 4, 2025
…alkey-io#2780) Since Valkey Sentinel 9.0, sentinel tries to abort an ongoing failover when changing the role of a monitored instance. Since the result of the command is ignored, the "FAILOVER ABORT" command is sent irrespective of the actual failover status. However, when using the documented pre 9.0 ACLs for a dedicated sentinel user, the FAILOVER command is not allowed and _all_ failover cases fail. (Additionally, the necessary ACL adaptation was not communicated well.) Address this by: - Updating the documentation in "sentinel.conf" to reflect the need for an adapted ACL - Only abort a failover when sentinel detected an ongoing (probably stuck) failover. This means that standard failover and manual failover continue to work with unchanged pre 9.0 ACLs. Only the new "SENTINEL FAILOVER COORDINATED" requires to adapt the ACL on all Valkey nodes. - Actually use a dedicated sentinel user and ACLs when testing standard failover, manual failover, and manual coordinated failover. Fixes valkey-io#2779 Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
zuiderkwast
pushed a commit
that referenced
this pull request
Dec 9, 2025
…2780) Since Valkey Sentinel 9.0, sentinel tries to abort an ongoing failover when changing the role of a monitored instance. Since the result of the command is ignored, the "FAILOVER ABORT" command is sent irrespective of the actual failover status. However, when using the documented pre 9.0 ACLs for a dedicated sentinel user, the FAILOVER command is not allowed and _all_ failover cases fail. (Additionally, the necessary ACL adaptation was not communicated well.) Address this by: - Updating the documentation in "sentinel.conf" to reflect the need for an adapted ACL - Only abort a failover when sentinel detected an ongoing (probably stuck) failover. This means that standard failover and manual failover continue to work with unchanged pre 9.0 ACLs. Only the new "SENTINEL FAILOVER COORDINATED" requires to adapt the ACL on all Valkey nodes. - Actually use a dedicated sentinel user and ACLs when testing standard failover, manual failover, and manual coordinated failover. Fixes #2779 Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
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.
Since Valkey Sentinel 9.0, sentinel tries to abort an ongoing failover when changing the role of a monitored instance. Since the result of the command is ignored, the "FAILOVER ABORT" command is sent irrespective of the actual failover status.
However, when using the documented pre 9.0 ACLs for a dedicated sentinel user, the FAILOVER command is not allowed and all failover cases fail. (Additionally, the necessary ACL adaptation was not communicated well.)
Address this by:
Updating the documentation in "sentinel.conf" to reflect the need for an adapted ACL
Only abort a failover when sentinel detected an ongoing (probably stuck) failover. This means that standard failover and manual failover continue to work with unchanged pre 9.0 ACLs. Only the new "SENTINEL FAILOVER COORDINATED" requires to adapt the ACL on all Valkey nodes.
Actually use a dedicated sentinel user and ACLs when testing standard failover, manual failover, and manual coordinated failover.
Fixes #2779