Issue with asynchronous topology refresh #1763
-
Hi, Developing a clustered redis-compatible backend, and testing with lettuce, I'm experiencing the following issue when a new cluster member is added:
My
Should lettuce be able to deal with this situation? Is there a configuration option I'm missing? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The client behaves as designed. You can disable cluster membership validation ( So as a result of asynchronous topology refresh and by-default enabled cluster membership validation you see this failure. |
Beta Was this translation helpful? Give feedback.
The client behaves as designed.
MOVED
triggers a subsequent topology refresh andUnknownPartitionException
is a consequence for the current command. The topology refresh isn't performed within the receiving process as with sufficient traffic (consider multiple commands being completed withMOVED
) topology refresh would result in a DDoS-like scenario.You can disable cluster membership validation (
ClusterClientOptions.validateClusterNodeMembership
) which is more a security setting to avoid connection creation to arbitrary nodes.So as a result of asynchronous topology refresh and by-default enabled cluster membership validation you see this failure.