-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update consensus protocol spec (#9607)
The spec was written for the buggy protocol which we had before the one more similar to Raft was implemented. Update the spec with what we currently have. ref #8699
- Loading branch information
Showing
20 changed files
with
3,797 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TTrace* | ||
*.toolbox/ | ||
states/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
---- MODULE MCProposerAcceptorStatic ---- | ||
EXTENDS TLC, ProposerAcceptorStatic | ||
|
||
\* Augments the spec with model checking constraints. | ||
|
||
\* For model checking. | ||
CONSTANTS | ||
max_entries, \* model constraint: max log entries acceptor/proposer can hold | ||
max_term \* model constraint: max allowed term | ||
|
||
ASSUME max_entries \in Nat /\ max_term \in Nat | ||
|
||
\* Model space constraint. | ||
StateConstraint == \A p \in proposers: | ||
/\ prop_state[p].term <= max_term | ||
/\ Len(prop_state[p].wal) <= max_entries | ||
\* Sets of proposers and acceptors are symmetric because we don't take any | ||
\* actions depending on some concrete proposer/acceptor (like IF p = p1 THEN | ||
\* ...) | ||
ProposerAcceptorSymmetry == Permutations(proposers) \union Permutations(acceptors) | ||
|
||
\* enforce order of the vars in the error trace with ALIAS | ||
\* Note that ALIAS is supported only since version 1.8.0 which is pre-release | ||
\* as of writing this. | ||
Alias == [ | ||
prop_state |-> prop_state, | ||
acc_state |-> acc_state, | ||
committed |-> committed | ||
] | ||
|
||
==== |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
fa909c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7018 tests run: 6709 passed, 1 failed, 308 skipped (full report)
Failures on Postgres 15
test_pull_timeline[True]
: release-arm64Flaky tests (5)
Postgres 17
test_read_validation
: release-x86-64Postgres 15
test_prefetch[4]
: release-arm64Postgres 14
test_prefetch[None]
: release-x86-64test_prefetch[4]
: release-arm64test_pull_timeline[True]
: release-arm64Test coverage report is not available
fa909c2 at 2024-12-02T17:13:19.979Z :recycle: