Skip to content
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

Update consensus protocol spec #9607

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions safekeeper/spec/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*TTrace*
*.toolbox/
states/
26 changes: 26 additions & 0 deletions safekeeper/spec/MCProposerAcceptorStatic.tla
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---- 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
ProposerAcceptorSymmetry == Permutations(proposers) \union Permutations(acceptors)

\* enforce order of the vars in the error trace with ALIAS
Alias == [
prop_state |-> prop_state,
acc_state |-> acc_state,
committed |-> committed
]

====
34 changes: 0 additions & 34 deletions safekeeper/spec/ProposerAcceptorConsensus.cfg

This file was deleted.

Loading
Loading