I am getting the following error often when I run against Elasticache Redis in AWS. I haven't tested in non-AWS env yet though. Why this happens and how can I avoid this error? Redis commands like get/set fails when I get this error.
Caused by: com.lambdaworks.redis.RedisException: java.lang.IllegalArgumentException: Connection to
10.2.65.53:6379 not allowed. This connection point is not known in the cluster view
at com.lambdaworks.redis.cluster.PooledClusterConnectionProvider.getConnection(PooledClusterConnectionProvider.java:227)
at com.lambdaworks.redis.cluster.ClusterDistributionChannelWriter.lambda$write$0(ClusterDistributionChannelWriter.java:104)
at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38)
at io.netty.util.concurrent.PromiseTask.run(PromiseTask.java:73)
at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:66)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
... 1 more
Caused by: java.lang.IllegalArgumentException: Connection to
10.2.65.53:6379 not allowed. This connection point is not known in the cluster view
at com.lambdaworks.redis.cluster.PooledClusterConnectionProvider.invalidConnectionPoint(PooledClusterConnectionProvider.java:413)
at com.lambdaworks.redis.cluster.PooledClusterConnectionProvider.getConnection(PooledClusterConnectionProvider.java:218)
... 7 more