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

Refresh nodes when renewSlotCache #2642

Merged

Conversation

yangbodong22011
Copy link
Collaborator

This PR solves #2504 #2550, when renewSlotCache, we also remove dead nodes according to the
latest query.

@sazzad16
Copy link
Collaborator

@yangbodong22011

  1. 👍 for resolving JedisClusterInfoCache: refresh the nodes map #2550
  2. About Remove slave to jedisPool mapping #2504, the actual issue would still remain. But this would at least add some defense.

Could you please add a reverse test? E.g. start with 4 nodes and end up with 3 nodes after reconfiguration?

This PR solves redis#2504 redis#2550, when renewSlotCache, we also remove dead nodes according to the
latest query.
@yangbodong22011
Copy link
Collaborator Author

Could you please add a reverse test? E.g. start with 4 nodes and end up with 3 nodes after reconfiguration?

@sazzad16 done

@sazzad16 sazzad16 merged commit c056a11 into redis:master Sep 30, 2021
sazzad16 pushed a commit that referenced this pull request Sep 30, 2021
This PR solves #2504 #2550, when renewSlotCache, we also remove dead nodes according to the
latest query.
@chayim chayim mentioned this pull request Jun 2, 2022
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.

None yet

3 participants