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
I am using Spring cloudgateway and Spring data redis LettuceConnectionFactory
I have created a RedisMessageListenerContainer Bean like this below to listen to Key expiry events
Cannot reconnect to [test-cache-xxx-0001-002.test-cache-xxxx.cache.amazonaws.com/:6379]: Failed to resolve 'test-cache-xxx-0001-002.test-cache-xxxx.cache.amazonaws.com' [A(1)] and search domain query for configured domains failed as well: [ai-ml-core.svc.cluster.local, svc.cluster.local, cluster.local, ec2.internal]
And deleting the pod sometimes fixes the issue and the connection works just fine.
Environment
spring data redis version - 3.3.2
The text was updated successfully, but these errors were encountered:
I would be happy to help, but this seems like a connectivity issue on the side of your application, in particular - DNS resolve issue.
Failed to resolve 'test-cache-xxx-0001-002.test-cache-xxxx.cache.amazonaws.com'
All the Lettuce driver could do is use the connection string provided to attempt to connect, but if the OS says that the address provided could not be resolved then:
a) either the address is wrong / misspelled
b) the container / physical machine could not resolve the domain name to an IP address (network settings)
Bug Report
Current Behavior
I am using Spring cloudgateway and Spring data redis LettuceConnectionFactory
I have created a RedisMessageListenerContainer Bean like this below to listen to Key expiry events
My bean creation is failing because i am getting Connection related error with the AWS ElastiCache cluster using LettuceConnectionFactory.
Stacktrace below
Stack trace
additonal message
logger - io.lettuce.core.protocol.ConnectionWatchdog
Cannot reconnect to [test-cache-xxx-0001-002.test-cache-xxxx.cache.amazonaws.com/:6379]: Failed to resolve 'test-cache-xxx-0001-002.test-cache-xxxx.cache.amazonaws.com' [A(1)] and search domain query for configured domains failed as well: [ai-ml-core.svc.cluster.local, svc.cluster.local, cluster.local, ec2.internal]
And deleting the pod sometimes fixes the issue and the connection works just fine.
Environment
The text was updated successfully, but these errors were encountered: