forked from etcd-io/raft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
demo how TLA+ model checking helps to find raft issue
- Loading branch information
1 parent
7f35117
commit 6aefcc8
Showing
3 changed files
with
206 additions
and
114 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 |
---|---|---|
|
@@ -20,8 +20,11 @@ CONSTANTS | |
s4 = 4 | ||
s5 = 5 | ||
|
||
InitServer = {s1, s2, s3} | ||
Server = {s1, s2, s3} | ||
\* InitServer = {s1, s2, s3} | ||
\* Server = {s1, s2, s3} | ||
|
||
InitServer = {s1} | ||
Server = {s1} | ||
|
||
Nil = 0 | ||
|
||
|
@@ -52,3 +55,4 @@ INVARIANTS | |
QuorumLogInv | ||
MoreUpToDateCorrectInv | ||
LeaderCompletenessInv | ||
CommittedIsDurableInv | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
joshuazh-x
Author
Owner
|
Oops, something went wrong.
Would this invariant be useful to upstream when we have tla+ PR merged?