-
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
IPv6 Cluster connection errors #1422
Comments
Have worked out issue. It's to do with cluster nodes and the IPv6 Addresses not having braces around in Redis. So our cluster list is
And it's parsing in TryEndpoint that as I've done a temp fix for my issue to get working by adjusting TryEndpoint
|
You're right, this is a plain ol' bug. Needs attention in both |
Are we happy to say that Redis cluster nodes will always return the port? |
Have adjusted it now :). ToString was OK as the Endpoint returned is in the correct form. |
where are those strings coming from? I may have been incorrect in my earlier statement; I'm concerned that we need to ensure that the strings are all entirely valid. Where are the strings coming from, exactly? |
If you are running a v6 cluster. See below.
|
OK; my thought here is that we should not consider this as a standard IP plus port syntax, as that is not a valid ip plus port syntax. Under RFC 3986, that should be The cluster nodes documentation indicates that the format is
and parse /cc @antirez, just in case you want to think about whether the output of |
Ok, Let me have a re-jig and think differently about it. |
Think I'm seeing a similar issue Here This is def. a Redis bug, however it is in production (Azure redis cache) |
I've got an IPv6 only Redis cluster. The client connects fine to any hash slots on the existing node, but if it needs to go to another node it fails. Have proven the network is fine as another client will connect fine not in .Net code. Odd how the port is in the endpoint.
Connection string was
"[abcd:1234:3:a::a]:7000,[abcd:1234:3:a::b]:7000"
The GetEndpoints has 8 endpoints when there is only 6 in the cluster (3 master, 3 slave).
'Endpoint
[abcd:1234:3:a::c:7000]:0
serving hashslot 6438 is not reachable at this point of time. Please check connectTimeout value. If it is low, try increasing it to give the ConnectionMultiplexer a chance to recover from the network disconnect. IOCP:The text was updated successfully, but these errors were encountered: