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

Fix parse_cluster_info in RedisCluster.ConfigManager #53

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

norbajunior
Copy link
Contributor

I came across this problem when trying to use the cluster mode. I realized that the lib wasn't considering the optional fields that can be present in the data returned by the "CLUSTER SHARDS" command (tls-port and hostname), which in the code the info are extracted through a pattern matching operation that when these optional fields are present doesn´t match the expected, leading to lost the data and returning an empty list.

I was able to handle that as seen in the changes but I wasn't able to write the tests successfully. @cabol could you help with the tests if all I said makes any sense?

@norbajunior norbajunior requested a review from cabol August 1, 2023 11:41
@cabol cabol merged commit 3bb98f0 into cabol:master Aug 1, 2023
4 checks passed
@arkanttus
Copy link

Hi @cabol. Any prevision to next release with this fix?

@cabol
Copy link
Owner

cabol commented Aug 3, 2023

Sure, will release it in the next few days (coming weekend)!

@arkanttus
Copy link

Nicee, very thanks!

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