Skip to content

Conversation

@mrgonza78
Copy link

Removing "master_nodes" module variable b/c:

  • info in this variable was not "per client" (like slot_cache) so it was containing a list of all master nodes of all cluster-clients ever instantiated
  • list was always growing (there were just appends to the table)
  • list of master nodes can be already obtained from the slots info already cached per client (this eliminates the need of an extra "nodes" query to redis)

I'm missing testing for this. I could not find in the readme or anywhere how tests are run for this project. If we can add those instructions I could run existing tests and add new ones that verify what I'm actually fixing.

Thanks

* info in this table was not "per client" (like slot_cache) so it was containing a list of all master nodes of all cluster-clients ever instantiated
* list was always growing (there were just appends to the table)
* list of master nodes can be already obtained from the slots info already cached per client (this eliminates the need of an extra "nodes" query to redis)
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.

1 participant