4791434cea
- Add heartbeatReceived variable tracking last term with heartbeat - Add Heartbeat action: leader sends keep-alive; recipient steps down on higher term - Add HeartbeatTimeout: follower starts election if no heartbeat in current term - Add LeaderLeaseExpired: leader steps down if it loses quorum connectivity - Add LeaderHasSelfHeartbeat invariant: every leader must have valid heartbeat - raft.tla now models realistic partition behavior (38M states verified) - Update CHANGELOG -> v1.2.0, VERSION -> 1.2.0, PLAN.md, README.md
20 lines
257 B
INI
20 lines
257 B
INI
CONSTANTS
|
|
Nodes = {n1, n2, n3}
|
|
Nil = Nil
|
|
MaxTerm = 3
|
|
MaxLogLen = 3
|
|
|
|
SPECIFICATION Spec
|
|
|
|
CHECK_DEADLOCK FALSE
|
|
|
|
INVARIANTS
|
|
TypeOk
|
|
ElectionSafety
|
|
LeaderAppendOnly
|
|
StateMachineSafety
|
|
CommittedIndexValid
|
|
LogMatching
|
|
LeaderHasSelfHeartbeat
|
|
|