Replies: 3 comments 3 replies
-
Hey @amaan75 , Can you give some more context to the issue,I am afraid I do not fully understand it.
Could you give us a sample of the code that makes the connection?
I assume you are using at-most-once command execution reliability? Does the at-least-once not work for you?
Can you tell me what means "continued to failed" in this case, was there an exception, are you using Async APIs, etc.
Could you create a minimum reproducible example where we can see the exact problem? This would be extremely helpful. |
Beta Was this translation helpful? Give feedback.
-
@tishun i would be happy to submit a PR for this, can you guide me to possible fix here? |
Beta Was this translation helpful? Give feedback.
-
@tishun any luck on guiding me towards a fix, or perhaps, is there a newer version that already fixes this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am using lettuce with spring data Redis
LettuceCore : 6.1.4.RELEASE
spring-data-redis: 2.5.4
AWS elasticache for Redis 6.X (non clustered mode)
while connecting with Redis we supply the client 2 endpoints 1 reader endpoint and a primary endpoint.
we recently encountered an issue where while connecting to this cluster the role command to primary failed the first time because of some transient network issue and then even though the network became stable our set and get commands both continued to failed because we had set ReadFromUpstream as a read preference.
Is there any plans to change this behaviour?
Ideally I would like my container to retry figuring out if the master is available even if it wasn't able to do so the first time.
This is easily reproducible too, I setup a Redis with 1 master and 2 replicas via docker and keep the master down during the time my service tries to connect to Redis the first time and post that it stays that way.
My understanding is that the issue comes from the fact that once this masterReplicaConnectionProvider has the knownNodes set the first time and never changes afterwords.
Beta Was this translation helpful? Give feedback.
All reactions