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
In my application that uses latest redis (v9) cluster, the active writes the record while the standby reads the same record around the same time. This works most of the time but run into MOVED error sometimes. This does not resolve in the 3 MaxRedirects but does work if retried after a short delay.
I am curious why redis uses LazyReload() rather than Reload() on this line:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In my application that uses latest redis (v9) cluster, the active writes the record while the standby reads the same record around the same time. This works most of the time but run into MOVED error sometimes. This does not resolve in the 3 MaxRedirects but does work if retried after a short delay.
I am curious why redis uses LazyReload() rather than Reload() on this line:
https://github.com/redis/go-redis/blame/21bd40a47e56e61c0598ea1bdf8e02e67d1aa651/osscluster.go#L964
Can anyone clarify why LazyReload() is being used here?
Any ideas why the retries in the for loop don't resolve the MOVED error?
Has anyone else run into this issue?
Edit: It seems the MOVED error typically happens right after the initial deployment but very rare subsequently.
Beta Was this translation helpful? Give feedback.
All reactions