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

Redis sentinel client should not fail for hosts not found in the config file #62

Open
TysonAndre opened this issue Oct 3, 2022 · 0 comments

Comments

@TysonAndre
Copy link

Describe the bug
If twemproxy enables sentinel support for redis, and it receives a sentinel response with references to a db name not found in the redis config file, then it should just log it instead of treating the sentinel server as in an invalid state and disconnecting

Original code causing this error for "unknown server name"

                server = server_find_by_name(ctx, sentinel->owner, &server_name);
                if (server == NULL) {
                    log_error("unknown server name:%.*s", server_name.len, server_name.data);
                    goto error;
                }
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

No branches or pull requests

1 participant