Skip to content

Commit

Permalink
Startup
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Nov 2, 2023
1 parent 0866229 commit f0d6501
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
25 changes: 13 additions & 12 deletions .azure-pipelines-templates/trace_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ steps:
set -ex
cd tla/
parallel 'JSON={} ./tlc.sh consensus/Traceccfraft.tla' ::: \
../build/replicate.ndjson \
../build/election.ndjson \
../build/multi_election.ndjson \
../build/check_quorum.ndjson \
../build/reconnect.ndjson \
../build/reconnect_node.ndjson \
../build/bad_network.ndjson \
../build/fancy_election.1.ndjson \
../build/fancy_election.2.ndjson \
../build/suffix_collision.1.ndjson \
../build/suffix_collision.2.ndjson \
../build/suffix_collision.3.ndjson
../build/startup.ndjson
# ../build/replicate.ndjson \
# ../build/election.ndjson \
# ../build/multi_election.ndjson \
# ../build/check_quorum.ndjson \
# ../build/reconnect.ndjson \
# ../build/reconnect_node.ndjson \
# ../build/bad_network.ndjson \
# ../build/fancy_election.1.ndjson \
# ../build/fancy_election.2.ndjson \
# ../build/suffix_collision.1.ndjson \
# ../build/suffix_collision.2.ndjson \
# ../build/suffix_collision.3.ndjson
displayName: "Run trace validation"
4 changes: 3 additions & 1 deletion tla/consensus/ccfraft.tla
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,11 @@ ChangeConfigurationInt(i, newConfiguration) ==
configuration |-> newConfiguration,
contentType |-> TypeReconfiguration]
newLog == [log[i] EXCEPT ![Len(log[i])] = entry]
\* Remove the ghost configuration at index 0, there's no index 0 in the log
validConfigurationPrefix == [ci \in DOMAIN configurations[i] \ {0} |-> configurations[i]]
IN
/\ log' = [log EXCEPT ![i] = newLog]
/\ configurations' = [configurations EXCEPT ![i] = @ @@ Len(log[i]) :> newConfiguration]
/\ configurations' = [configurations EXCEPT ![i] = validConfigurationPrefix @@ Len(log[i]) :> newConfiguration]
/\ UNCHANGED <<messageVars, serverVars, candidateVars,
leaderVars, commitIndex, committableIndices>>

Expand Down

0 comments on commit f0d6501

Please sign in to comment.