Skip to content

Conversation

nkaradzhov
Copy link
Collaborator

getRandomNode could end up in an infinite loop if
this.masters is empty and this.replicas is empty.

fixes: #3075

  • Is the new or changed code fully tested?

getRandomNode could end up in an infinite loop if
this.masters is empty and this.replicas is empty.

fixes: redis#3075
@nkaradzhov nkaradzhov merged commit 6eed1ee into redis:master Sep 12, 2025
14 checks passed
@nkaradzhov nkaradzhov deleted the cluster-slots-fix branch September 12, 2025 11:48
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.

CPU pegged while using createCluster() against AWS ElastiCache Valkey cluster
3 participants