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
ReadIndex service may got duplicate ctx
#4764
Comments
How about combining peer id and current unix timestamp? It does the best effort and should cover for most cases. |
cc @5kbpers |
Great idea. I think we could get a monotonic clock time, combine with |
Monotonic clock time is not reliable. It's not guaranteed to be increased monotonically between booting. |
Yes, we can use |
Why not use UUID? |
UUID can not be sorted :( |
Seems it is not required to be sorted (get it after reading the code again), UUID is a good idea :) |
Hi folks seems this is fixed by #5213. I'm closing this but feel free to reopen. |
Bug Report
What version of TiKV are you using?
release3.0 rc2
Problems
ctx
of pending reading is independently produced bytikv
itself, it may same in leader and follower at the same time, theReadIndex
request will conflict and may lose one.follwer_id
inctx
, it will solve problem 1, but if follower restart will also produce the samectx
.advance
the pending reads may need to iterate all pending reads, which is slowly. likely get the order ofctx
in follower from ready is 1 2 4 5 6 7 8 9 3.The text was updated successfully, but these errors were encountered: