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

[BUG] redis cluster can not failover #13234

Open
dormanze opened this issue Apr 25, 2024 · 1 comment
Open

[BUG] redis cluster can not failover #13234

dormanze opened this issue Apr 25, 2024 · 1 comment

Comments

@dormanze
Copy link

Describe the bug
redis version: 6.2.7
redis cluster nodes:9(each have 1 replica)
I stop a primary shard and its corresponding replica shard, and then start the replica shard. After 20 minutes, the replica shard is not promoted to the primary shard.
error message:

1209:S 25 Apr 2024 15:02:30.462 * Connecting to MASTER 192.168.24.44:28800
1209:S 25 Apr 2024 15:02:30.462 * MASTER <-> REPLICA sync started
1209:S 25 Apr 2024 15:02:30.462 # Error condition on socket for SYNC: (null)

To reproduce
After the primary shard and its replica shard are stopped at the same time, only the replica shard is started, and the replica shard will never be automatically promoted to the primary shard.

Expected behavior

The replica shard is automatically promoted to primary.

Additional information

@worming004
Copy link

How many other instances of redis are online at the restart of the replica ? Is there enought other instance to acknowledge that it is the master that disappears from cluster ? Because without other instances to agree, the replica can be the one that is partitionned and should not become the master

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

No branches or pull requests

2 participants