mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
lease.exp is now the published horizon, dhz the horizon on disk and deadline the latest grant. A renewal of a live lease writes nothing: grant = min(now + TTL, horizon), refused while uncertain or without validity, and it may trigger an extension. The extension (MasterExtend) is an ordinary serialized writer that raises the horizon to trigger + TTL + HSlack; with ExtFail its write may fail without landing or after landing, and either way latches uncertain. Revocation, ACK and move writes are refused while uncertain; a restart reloads the disk horizon and clears uncertainty. The revoking drain reply is clamped to min(horizon, deadline). Nondecreasing time is stated as a model assumption. New invariants HostWithinHorizon and DiskCoversMemory; witnesses W_NoExtension, W_NoExtLanded, W_NoUncertain. New cfgs W4_hz_* (failing extensions, clean/forced/both, one restart) and RED_hz_noclamp (no clamp: EXPECTED to violate HostWithinHorizon) with the control RED_hz_noclamp_safety (no clamp, split-brain invariants: expected to pass, the restart rule covers grants). Existing cfgs gain Clamp = TRUE and ExtFail = FALSE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
662 B
INI
24 lines
662 B
INI
\* W4_both: model-checks WorkspaceTakeover.tla (run from docs/spec: ./run.sh W4_both)
|
|
SPECIFICATION Spec
|
|
CONSTANTS
|
|
Kinds = {"clean", "forced"}
|
|
MaxT = 4
|
|
TTL = 2
|
|
ITTL = 1
|
|
MaxLSN = 2
|
|
MaxCuts = 2
|
|
Drift = 0
|
|
MaxRestarts = 0
|
|
LeaseOn = TRUE
|
|
LsnGuard = TRUE
|
|
StoreEpochGuard = TRUE
|
|
HostFence = TRUE
|
|
LayerLsnCheck = TRUE
|
|
SeedFromObserved = TRUE
|
|
GCEpochRule = TRUE
|
|
WaitLeaseExpiry = TRUE
|
|
Clamp = TRUE
|
|
ExtFail = FALSE
|
|
INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover
|
|
PROPERTY HeadMonotone
|