You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using eredis pointing to a redis cluster endpoint with large number of shards, I get error :nxdomain. The only workaround is to use a list of ip addresses.
It is because, :inet.getaddr/2 unable to handle dns lookups that result in a large answers. Note however that :inet_res.gethostbyname/1 works fine likely because it reissues the dns lookup over TCP when it finds that the first query had the truncate bit set.
This is with eredis_cluster ~> 0.5.12
When using eredis pointing to a redis cluster endpoint with large number of shards, I get error :nxdomain. The only workaround is to use a list of ip addresses.
It is because, :inet.getaddr/2 unable to handle dns lookups that result in a large answers. Note however that :inet_res.gethostbyname/1 works fine likely because it reissues the dns lookup over TCP when it finds that the first query had the truncate bit set.
Offending code here: https://github.com/wooga/eredis/blob/master/src/eredis_client.erl#L335 (line 335, and line 307)
Below is a sample iex output that shows the error
Note the :nxdomain error in the second command, same hostname works fine in the fourth command.
The text was updated successfully, but these errors were encountered: