-
Notifications
You must be signed in to change notification settings - Fork 173
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
fix: cache auto retry on MOVED / ASK / ... #701
Conversation
BTW, happened to find out testcase |
Thank you for catching that. We can just delete all the |
@rueian all review discussions resolved, please check this out. |
Thank you @wyxloading! |
try fix #700
DoCache, DoMultiCache
end out with one or some redis transaction like:MULTI, PTTL {key}, GET {key}, EXEC
When we scale a redis-cluster,
PTTL {key}
may return aMOVED / ASK
error because slot have mark migrate / migrating / migrated to another node, then the transaction may fail.We hope driver can handle this case automaticlly by just retry the transaction on node which error said.
EDIT:
We tested in our real test environment and it works.