This commit is contained in:
Heidi Howard 2024-02-19 17:11:44 +00:00 коммит произвёл GitHub
Родитель 41c8cb9595
Коммит 9575d6d8cf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 3 добавлений и 13 удалений

Просмотреть файл

@ -5,7 +5,6 @@ CONSTANTS
Servers <- ToServers
MaxTermLimit = 2
MaxCommitsNotified = 0
RequestLimit = 3
StatsFilename = "MCccfraft_stats.json"

Просмотреть файл

@ -17,9 +17,6 @@ ASSUME Configurations \in Seq(SUBSET Servers)
CONSTANT MaxTermLimit
ASSUME MaxTermLimit \in Nat
CONSTANT MaxCommitsNotified
ASSUME MaxCommitsNotified \in Nat
\* Limit on client requests
CONSTANT RequestLimit
ASSUME RequestLimit \in Nat
@ -91,10 +88,6 @@ MCSend(msg) ==
/\ n.type = AppendEntriesResponse
/\ CCF!Send(msg)
\* Limit max number of simultaneous candidates
MCInMaxSimultaneousCandidates(i) ==
Cardinality({ s \in GetServerSetForIndex(i, commitIndex[i]) : leadershipState[s] = Candidate}) < 1
MCInit ==
/\ InitMessagesVars
/\ InitCandidateVars

Просмотреть файл

@ -5,7 +5,6 @@ CONSTANTS
Servers <- ToServers
MaxTermLimit = 5
MaxCommitsNotified = 2
RequestLimit = 3
StatsFilename = "MCccfraftAtomicReconfig_stats.json"

Просмотреть файл

@ -5,7 +5,6 @@ CONSTANTS
Servers <- ToServers
MaxTermLimit = 4
MaxCommitsNotified = 2
RequestLimit = 2
StatsFilename = "MCccfraftWithReconfig_stats.json"

Просмотреть файл

@ -27,14 +27,14 @@ SIMChangeConfigurationInt(i, newConfiguration) ==
SIMTimeout(i) ==
/\ \/ 1 = RandomElement(1..100)
\* Always allow Timeout if no messages are in the network
\* and no node is a candidate or leader. Otherise, the system
\* and no node is a candidate or leader. Otherwise, the system
\* will deadlock if 1 # RandomElement(...).
\/ /\ \A s \in Servers: leadershipState[s] \notin {Leader, Candidate}
/\ Network!Messages = {}
/\ CCF!Timeout(i)
\* The state constraint StopAfter stops TLC after the alloted
\* time budget is up, unless TLC encounteres an error first.
\* time budget is up, unless TLC encounters an error first.
StopAfter ==
LET timeout == IF ("SIM_TIMEOUT" \in DOMAIN IOEnv) /\ IOEnv.SIM_TIMEOUT # "" THEN atoi(IOEnv.SIM_TIMEOUT) ELSE 1200
(* The smoke test has a time budget of 20 minutes. *)
@ -64,7 +64,7 @@ SIMPostCondition ==
=============================================================================
## Repeatedly run TLC in simulation mode to shorten a counterexample (the depth parameter will consequtively be reduced based on the length of the previous counterexample).
## Repeatedly run TLC in simulation mode to shorten a counterexample (the depth parameter will successively be reduced based on the length of the previous counterexample).
$ echo 500 > depth.txt
## Loop while the depth.txt file exists and is not empty.
$ while [ -s depth.txt ];