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
Failed to establish connection to redis cluster mode deployment #3613
Comments
@ashok-mariyala Can you connect and operate using other clients, e.g. redis-cli? |
@sazzad16 Thanks for your response. I am able to connect and insert data using redis-cli commands. Please find the following output.
|
@ashok-mariyala What happens if you (try to) connect to |
@sazzad16 I am getting the same error even though i am using |
@ashok-mariyala You can't get same error (JedisClusterOperationException) from Jedis class/object. If it was not clear enough, I meant Jedis class/object just this earlier. So try |
@sazzad16 Okay sure. I am running redis in Kubernetes and here
Here is the result for connecting through jedis.
Result
Using 10.42.0.252
Result FYI
Note |
There seems not connection related issue. |
@sazzad16 I tried to increase
Result
|
@ashok-mariyala Firstly, it's not the same issue. Seeing only the last error, I would've assumed that it could be port enabling, firewall, or similar issue. Now I'm out of ideas. Sorry, couldn't help you much this time. |
@sazzad16 Issue is not with the Kubernetes cluster/port enabling/firewall or similar issue. The same cluster is working fine with Jedis client for Redis sentinal and Redis standalone deployments. I am facing issue with only Jedis client for Redis cluster deployment. Could you please let us know who will help on this issue? Thanks in advance. |
I encountered the same error, version 4.4.3. There is no obvious exception in the monitoring data from the redis server, but the Jedis client will first execute "redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out", and the error "redis.clients.jedis.exceptions.JedisClusterOperationException: Cluster retryjpg attempts exceeded." will be sent after retrying several times. And I have this problem after trying from version 3.7 to version 4.4.3. I look forward to your reply. Thanks! |
Hi @ashok-mariyala @codingSy Have you fixed this issue? I am facing the same error Error was: Cluster retry deadline exceeded. Here is my code
|
@vimal7225s No, I had no choice but to give up Jedis. After switching to Luttuce, there was no problem. |
Any updates on this? I'm getting similar issues with Jedis |
Expected behavior
Jedis java client should connect with Redis cluster deployment.
Actual behavior
Jedis java client failed to connect with Redis cluster deployment.
Steps to reproduce:
helm install redis oci://registry-1.docker.io/bitnamicharts/redis-cluster -n redis
)kubectl port-forward svc/redis-redis-cluster 6379 -n redis
)Redis / Jedis Configuration
Jedis version: 4.4.3
Redis version:
Chart version: redis-cluster-9.1.3
App Version: 7.2.3
Java version:
Java Jedis code snippet
Exception
The text was updated successfully, but these errors were encountered: