question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with Azure Redis Cluster and lettuce versions 4.2.2 and 4.3.0

See original GitHub issue

Hello,

We have an Apache Storm project that uses lettuce to access an Azure Redis Cluster. We were using the lettuce version 4.2.2.Final, and when we tried to scale up the cluster we started receiving these exceptions:

com.lambdaworks.redis.RedisException: java.lang.IllegalArgumentException: Connection to XXX.XX.XXX.XXX:15000 not allowed. This connection point is not known in the cluster viewjava.lang.IllegalArgumentException: Connection to XXX.XX.XXX.XXX:15000 not allowed. This connection point is not known in the cluster viewConnection to XXX.XX.XXX.XXX:15000 not allowed. This connection point is not known in the cluster view Once we restarted the Storm topology, this exception disappeared.

Researching a bit, we saw that there was a newer version, the 4.3.0.Final that had these new properties

This release fixes several issues, provides a streamlined Sorted Sets API and introduces new features for network partition recovery, zero-downtime Redis Cluster reconfiguration and improved resource handling.

So we decided to try that version out. Unfortunately, as soon as we updated our code with this version of lettuce and deployed it into an environment with a Redis cluster, it started to return the same exception (without us modifying the Redis cluster like in the previous time or anything else in the code)

Any ideas what could be the problem?

Thanks, Javier

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mp911decommented, Jan 26, 2017

Your issue is because of validateClusterNodeMembership and a behavior in Lettuce 4.2.2 and earlier. Disable validateClusterNodeMembership in ClusterClientOptions.

Some background:

You connect using one endpoint that randomly points to an active Cluster node. Lettuce 4.2.2 and earlier replaced the URI of the node with the given (configured) endpoint and considered that address as cluster node address. Since the cluster answers with its internal host name and port (which is different), the membership validation fails. Check out https://github.com/mp911de/lettuce/wiki/Client-options for details, see also #312.

Lettuce 4.3 should have that issue solved but I will investigate on that issue.

0reactions
chaimchcommented, Jun 18, 2020

Your issue is because of validateClusterNodeMembership and a behavior in Lettuce 4.2.2 and earlier. Disable validateClusterNodeMembership in ClusterClientOptions.

Some background:

You connect using one endpoint that randomly points to an active Cluster node. Lettuce 4.2.2 and earlier replaced the URI of the node with the given (configured) endpoint and considered that address as cluster node address. Since the cluster answers with its internal host name and port (which is different), the membership validation fails. Check out https://github.com/mp911de/lettuce/wiki/Client-options for details, see also #312.

Lettuce 4.3 should have that issue solved but I will investigate on that issue.

thank you. It’s very useful for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Redis SSL Cluster + Lettuce Java (EDIT - Stack Overflow
Problem is when combining cluster+ssl, the auth call times out (the command is sent over the wire but times out). The cluster without...
Read more >
awesome-mirror/lettuce-core - Advanced Java Redis client - Gitee
Supports advanced Redis features such as Sentinel, Cluster, Pipelining, Auto-Reconnect and Redis data models. This version of Lettuce has been tested ...
Read more >
Redis with Java | Redis Documentation Center
To use Redis with Java, you need a Java Redis client. The following sections demonstrate the use of two Java client libraries for...
Read more >
Notices file - IBM Cloud
... of the following that IBM obtained under the Apache License Version 2.0: ... bser 2.0.0, cfenv 1.1.0, cloudant-follow 0.17.0, cluster-key-slot 1.0.12, ...
Read more >
Index of /pub/distributions/ALTLinux/p9/branch/noarch/RPMS ...
... 04-Sep-2021 22:51 57632 alt-issue-1.1-alt1.noarch.rpm 27-May-2021 ... 107497 cdlabelgen-4.3.0-alt1.noarch.rpm 18-Jun-2014 17:09 144746 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found