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

Ignore empty hosts returned by CLUSTER SLOTS #1025

Merged
merged 1 commit into from
Dec 25, 2019

Conversation

liukun
Copy link
Contributor

@liukun liukun commented Dec 12, 2019

When some nodes disconnected from the cluster, there will be left with some empty addresses.
nodes
Then the CLUSTER SLOTS will reply with empty hosts.
slots
ioredis then convert the empty address :0 to 127.0.0.1:6379 internally and try to connect them.
connectionPool
Even worse, when scaleReads=='slaves', it may try to sendCommand to :0.
So we'd better just ignore these empty addresses.

@luin luin merged commit d79a8ef into redis:master Dec 25, 2019
@luin
Copy link
Collaborator

luin commented Dec 25, 2019

Thanks for the contribution!

ioredis-robot pushed a commit that referenced this pull request Dec 25, 2019
## [4.15.1](v4.15.0...v4.15.1) (2019-12-25)

### Bug Fixes

* ignore empty hosts returned by CLUSTER SLOTS ([#1025](#1025)) ([d79a8ef](d79a8ef))
* prevent exception when send custom command ([04cad7f](04cad7f))
@ioredis-robot
Copy link
Collaborator

🎉 This PR is included in version 4.15.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

slestang pushed a commit to EasyMile/redix-cluster that referenced this pull request Sep 28, 2020
janus-dev87 added a commit to janus-dev87/ioredis-work that referenced this pull request Mar 1, 2024
## [4.15.1](redis/ioredis@v4.15.0...v4.15.1) (2019-12-25)

### Bug Fixes

* ignore empty hosts returned by CLUSTER SLOTS ([#1025](redis/ioredis#1025)) ([d79a8ef](redis/ioredis@d79a8ef))
* prevent exception when send custom command ([04cad7f](redis/ioredis@04cad7f))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants