-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Connection established but 'The specified endpoint is not defined' #2728
Comments
This looks like Sentinel is not returning a valid endpoint (or one we recognize) when asked what the master is. If you connect up directly and query |
@NickCraver We have identified something similar with this, see samcook/RedLock.net#112 (comment) It exists cases when sentinel returns IP addresses that isn't longer included in the cluster, the connection multiplexer will work correctly and abort them during initialization, but the Is the expectation that |
I am hitting this issue as well. @Tasteful please correct my assumptions if they are wrong. This issue is likely to be encountered by anyone calling This seems like a pretty serious issue. I have a lot of code that uses |
Yes, that is correct. |
I'm running a three node redis:7.2-alpine cluster on kubernetes, 1 master, 2 replicas, 3 sentinels.
My config is here
In dotnet I am using this code to connect:
Which works fine when running a redis cluster in docker compose, it has also worked on/off in the k8 cluster.
When it doesn't work the endpoint summary looks correct. As far as i can tell from the logs it's connected to the sentinels and resolved the correct ip / port for each redis endpoint, the exception thrown is the only thing I can tell that seems out of place:
This suggests something might be wrong with my config? But the fact that it has worked on the cluster, and consistently works locally has me confused.
Does anyone have any ideas or would be able to provide me with some direction to trouble shoot?
The text was updated successfully, but these errors were encountered: