-
Notifications
You must be signed in to change notification settings - Fork 180
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
Probe fom index less than match #148
Comments
Hi @joshuazh-x. The probe/replicate state distinction are heuristics. Regardless of what they do, it does not impact
Could you explain a little what you mean by loss? Do you mean we would be sending entries that are already in |
Are you saying that this line sets pr.Next = max(min(rejected, matchHint+1), 1) If so, that would not be by design, rather a bug. The invariant is that This clause should probably check with We need a test that demonstrates the bug, and a fix. |
|
Fixed by #149. |
I'm learning probe mechanism and notice there is chance for replication starting from an index less than match index in probe state, unlike that in replicate state. For example, a rejected probe response got delayed and is received when the leader falls into another probe state. This is a rare case of cause.
I'm not sure if this is by design. But to my understanding, allowing such a smaller index implies we want to tolerate loss of already replicated log entries.
The text was updated successfully, but these errors were encountered: