Skip to content

enhance the slave node promotion#340

Merged
git-hulk merged 1 commit into
apache:unstablefrom
greatsharp:unstable
Sep 19, 2025
Merged

enhance the slave node promotion#340
git-hulk merged 1 commit into
apache:unstablefrom
greatsharp:unstable

Conversation

@greatsharp

Copy link
Copy Markdown
Contributor
  1. When slave node doing full sync replication, it will return 'LOADING kvrocks is restoring the db from backup' error by executing 'cluster info' command, but it will return empty keyspace info if executing 'info' command.
  • We should skip the node if executing 'cluster info' command error.
  1. If slave node doing full sync replication failed, and slave node reboot, both 'cluster info' and info command can execute correctly, but the sequence returned is 0.
  • We should skip the node if sequence is 0 or role is not slave.

@greatsharp

Copy link
Copy Markdown
Contributor Author

this enhancement can prevent controller select an empty slave(sequence=0) into new master, but it will cause failover API failed in case of empty shard.

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

Successfully merging this pull request may close these issues.

2 participants