-
Notifications
You must be signed in to change notification settings - Fork 217
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
Swapping nextIndex for sentIndex #5897
Conversation
@heidihoward As an FYI: |
tla-off-by-one@80062 aka 20240109.19 vs main ewma over 20 builds from 79809 to 80055 Click to see tablemain
tla-off-by-one
|
CI metrics are looking suspicious. I expect we are not reaching the expected state of states, but I'll take a look tomorrow I would be great to add reachability to the test suite (like we have for the consistency specs) https://github.com/microsoft/CCF/blob/main/tla/consistency/MCMultiNodeCommitReachability.cfg |
Currently,
raft.h
usessent_index
to track the last index sent to a follower (ish) but the TLA+ specification usesnextIndex
to track the next index to send to each follower (sent_index
+1). As a result, the trace checker needs to incrementsent_index
before comparison tonextIndex
.This PR updates the TLA+ specification to swap
nextIndex
fromsentIndex
, renaming the variable and decreasing its value by one.Previously mentioned here: #5895 (comment)