From 7dd83eb6c0c0d72368d6f49b22e2613fe25e4813 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Wed, 18 Nov 2026 05:28:45 -0800 Subject: [PATCH] spec(workspace): model the durable lease horizon in WorkspaceTakeover (#205) 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 --- seaweed-block/docs/spec/WorkspaceTakeover.tla | 164 ++++++++++++------ .../docs/spec/cfg/RED_early_assign.cfg | 2 + seaweed-block/docs/spec/cfg/RED_epoch.cfg | 2 + .../docs/spec/cfg/RED_epoch_hostonly.cfg | 2 + .../docs/spec/cfg/RED_epoch_storeonly.cfg | 2 + .../docs/spec/cfg/RED_gc_ageonly.cfg | 2 + .../docs/spec/cfg/RED_hz_noclamp.cfg | 22 +++ .../docs/spec/cfg/RED_hz_noclamp_safety.cfg | 23 +++ seaweed-block/docs/spec/cfg/RED_lsn.cfg | 2 + .../docs/spec/cfg/RED_lsn_storeonly.cfg | 2 + seaweed-block/docs/spec/cfg/W4_both.cfg | 2 + seaweed-block/docs/spec/cfg/W4_clean.cfg | 2 + .../docs/spec/cfg/W4_clean_large.cfg | 2 + seaweed-block/docs/spec/cfg/W4_drift.cfg | 2 + .../docs/spec/cfg/W4_drift_heads.cfg | 2 + seaweed-block/docs/spec/cfg/W4_forced.cfg | 2 + .../docs/spec/cfg/W4_forced_exact.cfg | 2 + .../docs/spec/cfg/W4_forced_large.cfg | 2 + seaweed-block/docs/spec/cfg/W4_hz_both.cfg | 23 +++ seaweed-block/docs/spec/cfg/W4_hz_clean.cfg | 23 +++ seaweed-block/docs/spec/cfg/W4_hz_forced.cfg | 23 +++ .../docs/spec/cfg/W4_hz_reach_ext.cfg | 22 +++ .../docs/spec/cfg/W4_hz_reach_landed.cfg | 22 +++ .../cfg/W4_hz_reach_uncertain_restart.cfg | 22 +++ seaweed-block/docs/spec/cfg/W4_reach_bcut.cfg | 2 + .../docs/spec/cfg/W4_reach_clean.cfg | 2 + .../docs/spec/cfg/W4_reach_forced.cfg | 2 + .../docs/spec/cfg/W4_reach_restart.cfg | 2 + 28 files changed, 333 insertions(+), 49 deletions(-) create mode 100644 seaweed-block/docs/spec/cfg/RED_hz_noclamp.cfg create mode 100644 seaweed-block/docs/spec/cfg/RED_hz_noclamp_safety.cfg create mode 100644 seaweed-block/docs/spec/cfg/W4_hz_both.cfg create mode 100644 seaweed-block/docs/spec/cfg/W4_hz_clean.cfg create mode 100644 seaweed-block/docs/spec/cfg/W4_hz_forced.cfg create mode 100644 seaweed-block/docs/spec/cfg/W4_hz_reach_ext.cfg create mode 100644 seaweed-block/docs/spec/cfg/W4_hz_reach_landed.cfg create mode 100644 seaweed-block/docs/spec/cfg/W4_hz_reach_uncertain_restart.cfg diff --git a/seaweed-block/docs/spec/WorkspaceTakeover.tla b/seaweed-block/docs/spec/WorkspaceTakeover.tla index ec08859aca..0814350020 100644 --- a/seaweed-block/docs/spec/WorkspaceTakeover.tla +++ b/seaweed-block/docs/spec/WorkspaceTakeover.tla @@ -9,6 +9,17 @@ (* each host's clock may lag it by at most Drift ticks (bounded rate *) (* drift). Messages live in a set: delayed, reordered or lost. *) (* Code at seaweed-block main 5c293821; mapping in README.md (S2). *) +(* *) +(* #205, durable lease horizon (PR #209): lease.exp is the PUBLISHED *) +(* horizon (the blockmaster's in-memory copy of the durable record), dhz *) +(* the horizon on DISK, deadline the latest grant (memory only). A renewal *) +(* of a live lease writes nothing: grant = min(now + TTL, lease.exp). An *) +(* extension is an ordinary serialized writer that raises the horizon to *) +(* trigger + TTL + HSlack; its write may fail without landing or fail *) +(* after landing (unknown outcome). Any failed write latches `uncertain`: *) +(* renewals and other writes are refused until a restart reloads the disk. *) +(* Nondecreasing `now` (Tick/SlowTick only advance it) is an ASSUMPTION of *) +(* this model, not a property of the deployment's clocks. *) (***************************************************************************) EXTENDS Integers, FiniteSets, Sequences, TLC @@ -29,19 +40,28 @@ CONSTANTS LayerLsnCheck, \* layer refuses a cut below HEAD.remote_lsn (lsn_behind) chunk_layer.go:800 SeedFromObserved,\* B seeds its WAL from the HEAD its takeover CAS protects chunk_restore.go:38-43 GCEpochRule, \* GC expires an intent only when the remote HEAD epoch > intent epoch gc.go:221 - WaitLeaseExpiry \* forced move waits for the lease to expire authority/workspace.go:314-318 + WaitLeaseExpiry,\* forced move waits for the lease to expire authority/workspace.go:314-318 + Clamp, \* #205: a renewal's grant is clamped to the published horizon (FALSE: unsafe memory-only renewal) + ExtFail \* #205: an extension write may fail, landed or not (unknown outcome -> uncertain) Hosts == {"A", "B"} NoRec == [gen |-> 0, epoch |-> 0, holder |-> "-", st |-> "-", dgen |-> 0, lsn |-> 0, img |-> <<"-", 0>>] Head0 == [gen |-> 1, epoch |-> 1, holder |-> "A", st |-> "active", dgen |-> 0, lsn |-> 0, img |-> <<"A", 0>>] Other(h) == IF h = "A" THEN "B" ELSE "A" +Min(a, b) == IF a < b THEN a ELSE b +Max(a, b) == IF a > b THEN a ELSE b +\* #205 horizon geometry (workspace_lease_view.go): an extension writes H = trigger + TTL + HSlack; a renewal +\* triggers one when the published horizon is closer than TTL + Margin. Code: TTL/2 and TTL/4; at least one tick here. +HSlack == Max(1, TTL \div 2) +Margin == Max(1, TTL \div 4) VARIABLES now, lag, \* clocks head, stored, intents, \* remote store: HEAD, chunk bodies, intents msgs, \* in-flight messages - asg, lease, ack, journal, maxEpoch, \* blockmaster durable state (authority store) - deadline, restarts, \* blockmaster in-memory lease deadline (reset on restart) + asg, lease, ack, journal, maxEpoch, \* blockmaster published state (= the authority store unless uncertain) + deadline, restarts, \* blockmaster in-memory lease deadline (the latest grant; reset on restart) + dhz, uncertain, extReq, \* #205: horizon on disk; a write outcome is unknown; pending extension trigger time (-1: none) mv, \* operator's move in progress host, \* per-host state cut, \* per-host chunk-layer cut in progress @@ -49,7 +69,7 @@ VARIABLES hist \* history (never read by the protocol) vars == <> + deadline, restarts, dhz, uncertain, extReq, mv, host, cut, bpc, bobs, hist>> HNow(h) == now - lag[h] @@ -73,11 +93,13 @@ Init == /\ head = Head0 /\ stored = {<<"A", 0>>} /\ intents = {} /\ msgs = {} /\ asg = [holder |-> "A", epoch |-> 1] - /\ lease = [holder |-> "A", epoch |-> 1, exp |-> TTL, revoking |-> FALSE, none |-> FALSE] + \* A's first grant: horizon now + TTL + HSlack on disk, grant (deadline, A's validity) now + TTL + /\ lease = [holder |-> "A", epoch |-> 1, exp |-> TTL + HSlack, revoking |-> FALSE, none |-> FALSE] /\ ack = [gen |-> 0, holder |-> "-", epoch |-> 0] /\ journal = [kind |-> "-", gen |-> 0, lsn |-> 0, newEpoch |-> 0] /\ maxEpoch = 1 /\ deadline = TTL /\ restarts = 0 + /\ dhz = TTL + HSlack /\ uncertain = FALSE /\ extReq = -1 /\ mv = [st |-> "none", kind |-> "-", h |-> NoRec] /\ host = [h \in Hosts |-> IF h = "A" THEN [epoch |-> 1, until |-> TTL, fenced |-> FALSE, revoked |-> FALSE, stopIO |-> FALSE, @@ -94,25 +116,25 @@ Init == (* clocks and the VM *) Tick == /\ now < MaxT /\ now' = now + 1 - /\ UNCHANGED <> + /\ UNCHANGED <> \* the master clock advances, A's does not (bounded drift) SlowTick == /\ now < MaxT /\ lag["A"] < Drift /\ now' = now + 1 /\ lag' = [lag EXCEPT !["A"] = @ + 1] - /\ UNCHANGED <> + /\ UNCHANGED <> \* a VM write accepted by a serving host (WAL LSN + 1) VMWrite(h) == /\ Serving(h) /\ host[h].lsn < MaxLSN /\ host' = [host EXCEPT ![h].lsn = @ + 1] /\ hist' = [hist EXCEPT !.acked[h] = host[h].lsn + 1, !.bServeT = IF h = "B" /\ hist.bServeT < 0 THEN now ELSE hist.bServeT] - /\ UNCHANGED <> + /\ UNCHANGED <> LoseMsg == \E m \in msgs : /\ msgs' = msgs \ {m} /\ host' = IF m.t = "renew" \/ m.t = "lease" THEN [host EXCEPT ![m.h].renewing = FALSE] ELSE host - /\ UNCHANGED <> + /\ UNCHANGED <> ----------------------------------------------------------------------------- -(* workspace lease (core/host/volume/workspace_lease.go, core/authority/workspace.go) *) +(* workspace lease (core/host/volume/workspace_lease.go, core/authority/workspace_lease_view.go) *) \* Refresh: validity anchored to the request START (workspace_lease.go:68-127) SendRenew(h) == @@ -122,23 +144,51 @@ SendRenew(h) == /\ msgs' = msgs ELSE /\ host' = [host EXCEPT ![h].renewing = TRUE] /\ msgs' = msgs \cup {[t |-> "renew", h |-> h, e |-> host[h].epoch, s |-> HNow(h)]} - /\ UNCHANGED <> + /\ UNCHANGED <> -\* Publisher.RenewWorkspaceLease (authority/workspace.go:73-106), reply validFor = exp - now (workspace_service.go:41-52) +\* Publisher.RenewWorkspaceLease (#205, workspace_lease_view.go), reply validFor = expiry - now (workspace_service.go leaseFact). +\* - Revoking: the drain reply, expiry min(horizon, deadline); never extends (allowed while uncertain, as before). +\* - No lease yet: the FIRST grant, a synchronous durable write (refused while uncertain): horizon now + TTL + HSlack. +\* - Live lease: memory only. grant = min(now + TTL, horizon) (Clamp); refused while uncertain or when it leaves no +\* validity; deadline = max(deadline, grant); triggers an extension when the horizon is closer than TTL + Margin. MasterRenew == \E m \in msgs : /\ m.t = "renew" /\ LET okLine == asg.holder = m.h /\ asg.epoch = m.e - live == lease.none \/ (now < lease.exp /\ now < deadline) + Reply(ok, v, rv) == [t |-> "lease", h |-> m.h, s |-> m.s, ok |-> ok, valid |-> v, revoking |-> rv] + grant == IF Clamp THEN Min(now + TTL, lease.exp) ELSE now + TTL IN IF okLine /\ ~lease.none /\ lease.revoking - THEN /\ msgs' = (msgs \ {m}) \cup {[t |-> "lease", h |-> m.h, s |-> m.s, ok |-> TRUE, valid |-> lease.exp - now, revoking |-> TRUE]} - /\ UNCHANGED <> - ELSE IF okLine /\ live - THEN /\ lease' = [holder |-> m.h, epoch |-> m.e, exp |-> now + TTL, revoking |-> FALSE, none |-> FALSE] + THEN /\ msgs' = (msgs \ {m}) \cup {Reply(TRUE, Min(lease.exp, deadline) - now, TRUE)} + /\ UNCHANGED <> + ELSE IF okLine /\ lease.none /\ ~uncertain + THEN /\ lease' = [holder |-> m.h, epoch |-> m.e, exp |-> now + TTL + HSlack, revoking |-> FALSE, none |-> FALSE] + /\ dhz' = now + TTL + HSlack /\ deadline' = now + TTL - /\ msgs' = (msgs \ {m}) \cup {[t |-> "lease", h |-> m.h, s |-> m.s, ok |-> TRUE, valid |-> TTL, revoking |-> FALSE]} - ELSE /\ msgs' = (msgs \ {m}) \cup {[t |-> "lease", h |-> m.h, s |-> m.s, ok |-> FALSE, valid |-> 0, revoking |-> FALSE]} - /\ UNCHANGED <> - /\ UNCHANGED <> + /\ msgs' = (msgs \ {m}) \cup {Reply(TRUE, TTL, FALSE)} + /\ extReq' = extReq + ELSE IF okLine /\ ~lease.none /\ now < lease.exp /\ now < deadline /\ ~uncertain /\ grant > now + THEN /\ deadline' = Max(deadline, grant) + /\ extReq' = IF lease.exp < now + TTL + Margin /\ extReq < 0 THEN now ELSE extReq + /\ msgs' = (msgs \ {m}) \cup {Reply(TRUE, grant - now, FALSE)} + /\ UNCHANGED <> + ELSE /\ msgs' = (msgs \ {m}) \cup {Reply(FALSE, 0, FALSE)} + /\ UNCHANGED <> + /\ UNCHANGED <> + +\* the extender (#205, workspace_lease_view.go extendWorkspaceLease): an ordinary writer serialized with every other +\* write; it rechecks the lease and writes H = trigger + TTL + HSlack. Success publishes H. A failed write latches +\* uncertain whether or not it landed on disk (ExtFail). A failed recheck is a known no-write. +MasterExtend == + /\ extReq >= 0 + /\ LET H == extReq + TTL + HSlack + ok == /\ ~lease.none /\ ~lease.revoking /\ ~uncertain + /\ lease.holder = asg.holder /\ lease.epoch = asg.epoch /\ H > lease.exp + IN IF ok + THEN \/ /\ lease' = [lease EXCEPT !.exp = H] /\ dhz' = H /\ uncertain' = uncertain + \/ /\ ExtFail /\ lease' = lease /\ dhz' = dhz /\ uncertain' = TRUE \* failed, nothing landed + \/ /\ ExtFail /\ lease' = lease /\ dhz' = H /\ uncertain' = TRUE \* landed, reply lost + ELSE UNCHANGED <> + /\ extReq' = -1 + /\ UNCHANGED <> \* the host applies a reply (workspace_lease.go:88-127): the OLD deadline is checked first HostLease == \E m \in msgs : @@ -153,7 +203,7 @@ HostLease == \E m \in msgs : ![h].until = IF m.ok /\ ~fence /\ ~host[h].fenced THEN m.s + m.valid ELSE @] /\ msgs' = msgs \ {m} /\ hist' = [hist EXCEPT !.aStopT = IF m.h = "A" /\ hist.aStopT < 0 /\ m.revoking THEN now ELSE hist.aStopT] - /\ UNCHANGED <> + /\ UNCHANGED <> \* drain then clean ACK with the last committed HEAD gen, only while the lease is valid (:129-160) SendAck == @@ -161,35 +211,39 @@ SendAck == /\ host["A"].until > HNow("A") /\ host["A"].lh.gen # 0 /\ ~\E m \in msgs : m.t = "ack" /\ msgs' = msgs \cup {[t |-> "ack", h |-> "A", e |-> host["A"].epoch, gen |-> host["A"].lh.gen]} - /\ UNCHANGED <> + /\ UNCHANGED <> -\* Publisher.AckWorkspaceRevocation (authority/workspace.go:215-235) +\* Publisher.AckWorkspaceRevocation (authority/workspace.go:215-235): a durable write (refused while uncertain) MasterAck == \E m \in msgs : /\ m.t = "ack" /\ msgs' = msgs \ {m} /\ IF asg.holder = m.h /\ asg.epoch = m.e /\ m.gen # 0 /\ ~lease.none /\ lease.revoking - /\ now < lease.exp /\ now < deadline + /\ now < lease.exp /\ now < deadline /\ ~uncertain THEN ack' = [gen |-> m.gen, holder |-> m.h, epoch |-> m.e] ELSE ack' = ack - /\ UNCHANGED <> + /\ UNCHANGED <> -\* operator: BeginWorkspaceRevocation (authority/workspace.go:200-213) +\* operator: BeginWorkspaceRevocation (authority/workspace.go:200-213): a durable write (refused while uncertain) Revoke == /\ "clean" \in Kinds /\ ~lease.none /\ ~lease.revoking /\ lease.holder = asg.holder /\ asg.holder = "A" + /\ ~uncertain /\ lease' = [lease EXCEPT !.revoking = TRUE] - /\ UNCHANGED <> + /\ UNCHANGED <> \* operator / orchestrator: stop guest I/O on A before the final cut StopGuest == /\ "clean" \in Kinds /\ ~host["A"].stopIO /\ host' = [host EXCEPT !["A"].stopIO = TRUE] /\ hist' = [hist EXCEPT !.aStopT = IF hist.aStopT < 0 THEN now ELSE hist.aStopT] - /\ UNCHANGED <> + /\ UNCHANGED <> -\* blockmaster restart: durable state kept; the in-memory deadline conservatively -\* covers a full TTL again (authority.go:256-261) +\* blockmaster restart: the published state is reloaded from disk (so the published horizon becomes dhz), the +\* in-memory deadline conservatively covers a full TTL again (authority.go reloadFromStore), uncertainty and any +\* pending extension are gone MasterRestart == /\ restarts < MaxRestarts /\ restarts' = restarts + 1 /\ deadline' = now + TTL - /\ UNCHANGED <> + /\ lease' = IF lease.none THEN lease ELSE [lease EXCEPT !.exp = dhz] + /\ uncertain' = FALSE /\ extReq' = -1 + /\ UNCHANGED <> ----------------------------------------------------------------------------- (* the move (workspace_service.go:100-145, authority/workspace.go:157-198, 287-335) *) @@ -197,15 +251,17 @@ MasterRestart == /\ restarts < MaxRestarts \* the HEAD is read before the publisher lock (workspace_service.go:104-109) MoveRead == /\ mv.st = "none" /\ asg.holder = "A" /\ \E k \in Kinds : mv' = [st |-> "read", kind |-> k, h |-> head] - /\ UNCHANGED <> + /\ UNCHANGED <> +\* a durable write (refused while uncertain, authority.go apply); the forced barrier reads the published horizon +\* and the in-memory deadline MovePrepare == /\ mv.st = "read" /\ LET q == mv.h headOK == q.gen # 0 /\ q.epoch = asg.epoch /\ q.holder = asg.holder cleanOK == q.st = "detached" /\ ~lease.none /\ lease.revoking /\ ack.gen = q.gen /\ ack.epoch = asg.epoch forcedOK == ~WaitLeaseExpiry \/ (now >= lease.exp /\ now >= deadline) - ok == headOK /\ ~lease.none /\ IF mv.kind = "clean" THEN cleanOK ELSE forcedOK + ok == headOK /\ ~lease.none /\ ~uncertain /\ IF mv.kind = "clean" THEN cleanOK ELSE forcedOK IN IF ok THEN /\ maxEpoch' = maxEpoch + 1 /\ journal' = [kind |-> mv.kind, gen |-> q.gen, lsn |-> q.lsn, newEpoch |-> maxEpoch + 1] @@ -216,7 +272,7 @@ MovePrepare == /\ mv' = [mv EXCEPT !.st = "done"] ELSE /\ mv' = [st |-> "none", kind |-> "-", h |-> NoRec] \* refused; may be retried /\ UNCHANGED <> - /\ UNCHANGED <> + /\ UNCHANGED <> ----------------------------------------------------------------------------- (* B: VOLUME hook -> attach -> seed -> takeover CAS -> serve @@ -229,23 +285,23 @@ BAssign == \E m \in msgs : /\ msgs' = msgs \ {m} /\ host' = [host EXCEPT !["B"].epoch = m.e] /\ bpc' = "hook" - /\ UNCHANGED <> + /\ UNCHANGED <> BHook == /\ bpc = "hook" /\ bpc' = "attach" /\ Step("hook") \* EnsureVolume / attach check (provider_chunk.go:240-247) - /\ UNCHANGED <> + /\ UNCHANGED <> BAttach == /\ bpc = "attach" \* ClaimChunkHead: GetHead (chunk_restore.go:30-36) /\ IF head.epoch > host["B"].epoch THEN /\ bpc' = "failed" /\ bobs' = bobs /\ hist' = hist ELSE /\ bpc' = "seed" /\ bobs' = head /\ Step("attach") - /\ UNCHANGED <> + /\ UNCHANGED <> BSeed == /\ bpc = "seed" \* PrepareRestore -> SeedChunkFrontier (provider_chunk.go:286-307) /\ LET L == IF SeedFromObserved THEN bobs.lsn ELSE journal.lsn IN /\ host' = [host EXCEPT !["B"].lsn = L] /\ hist' = [hist EXCEPT !.steps = Append(hist.steps, "seed"), !.bSeed = L] /\ bpc' = "claim" - /\ UNCHANGED <> + /\ UNCHANGED <> BClaim == /\ bpc = "claim" \* the takeover CAS (chunk_restore.go:55-79) /\ LET next == [bobs EXCEPT !.gen = bobs.gen + 1, !.epoch = host["B"].epoch, !.holder = "B", @@ -257,7 +313,7 @@ BClaim == /\ bpc = "claim" \* the takeover /\ hist' = [hist EXCEPT !.steps = Append(hist.steps, "claim"), !.takeover = TRUE, !.bFirst = next] ELSE /\ bpc' = "attach" \* not installed: the attach is retried /\ UNCHANGED <> - /\ UNCHANGED <> + /\ UNCHANGED <> ----------------------------------------------------------------------------- (* the chunk layer's cut on host h (chunk_layer.go:680-988) *) @@ -271,20 +327,20 @@ CutStart(h, det) == /\ LayerLsnCheck => host[h].lsn >= host[h].lh.lsn \* lsn_behind (:800) /\ cut' = [cut EXCEPT ![h] = [pc |-> "intent", n |-> @.n, base |-> host[h].lh, lsn |-> host[h].lsn, img |-> <>, detach |-> det]] - /\ UNCHANGED <> + /\ UNCHANGED <> CutIntent(h) == \* PutIntent before any upload (:853, :1489) /\ cut[h].pc = "intent" /\ intents' = intents \cup {[own |-> h, n |-> cut[h].n + 1, epoch |-> host[h].epoch, key |-> cut[h].img, created |-> now]} /\ cut' = [cut EXCEPT ![h].pc = "upload"] - /\ UNCHANGED <> + /\ UNCHANGED <> CutUpload(h) == /\ cut[h].pc = "upload" /\ stored' = stored \cup {cut[h].img} /\ hist' = [hist EXCEPT !.late = IF h = "A" /\ hist.takeover THEN @ \cup {cut[h].img} ELSE @] /\ cut' = [cut EXCEPT ![h].pc = "admit"] - /\ UNCHANGED <> + /\ UNCHANGED <> DropOwn(h) == {i \in intents : ~(i.own = h /\ i.n = cut[h].n + 1)} @@ -293,7 +349,7 @@ CutAdmit(h) == \* admis /\ IF Permits(h) /\ (~HostFence \/ ~SupersededBy(h, host[h].lh)) THEN /\ cut' = [cut EXCEPT ![h].pc = "cas"] /\ intents' = intents ELSE /\ cut' = [cut EXCEPT ![h].pc = "idle", ![h].n = @ + 1] /\ intents' = DropOwn(h) - /\ UNCHANGED <> + /\ UNCHANGED <> CutCAS(h) == \* CASHead (:926), then settle by re-read (:957-987) /\ cut[h].pc = "cas" @@ -312,13 +368,13 @@ CutCAS(h) == \* CASHe ELSE [host EXCEPT ![h].lh = head] /\ hist' = hist /\ cut' = [cut EXCEPT ![h].pc = "drop"] - /\ UNCHANGED <> + /\ UNCHANGED <> CutDrop(h) == \* DeleteIntent after settling (:1378-1421) /\ cut[h].pc = "drop" /\ intents' = DropOwn(h) /\ cut' = [cut EXCEPT ![h].pc = "idle", ![h].n = @ + 1] - /\ UNCHANGED <> + /\ UNCHANGED <> ----------------------------------------------------------------------------- (* GC (core/frontend/chunkstore/gc.go:108-300) *) @@ -330,20 +386,20 @@ GCExpire == \E i \in intents : /\ GCEpochRule => (maxEpoch > i.epoch /\ head.epoch > i.epoch /\ head.epoch <= maxEpoch) /\ intents' = intents \ {i} /\ hist' = [hist EXCEPT !.badExpire = @ \/ (i.epoch = head.epoch /\ i.own = head.holder)] - /\ UNCHANGED <> + /\ UNCHANGED <> \* mark + sweep, atomic: roots are HEAD and live intents (grace abstracted, as in ChunkLifecycle) GCCollect == LET roots == {head.img} \cup {i.key : i \in intents} IN /\ stored \ roots # {} /\ stored' = stored \cap roots - /\ UNCHANGED <> + /\ UNCHANGED <> ----------------------------------------------------------------------------- Next == \/ Tick \/ SlowTick \/ LoseMsg \/ \E h \in Hosts : VMWrite(h) \/ SendRenew(h) \/ CutStart(h, FALSE) \/ CutStart(h, TRUE) \/ CutIntent(h) \/ CutUpload(h) \/ CutAdmit(h) \/ CutCAS(h) \/ CutDrop(h) - \/ MasterRenew \/ HostLease \/ SendAck \/ MasterAck \/ Revoke \/ StopGuest \/ MasterRestart + \/ MasterRenew \/ MasterExtend \/ HostLease \/ SendAck \/ MasterAck \/ Revoke \/ StopGuest \/ MasterRestart \/ MoveRead \/ MovePrepare \/ BAssign \/ BHook \/ BAttach \/ BSeed \/ BClaim \/ GCExpire \/ GCCollect @@ -388,11 +444,21 @@ SeedMatchesTakeover == hist.bFirst # NoRec => hist.bSeed = hist.bFirst.lsn \* HEAD epoch and remote_lsn never decrease HeadMonotone == [][head'.epoch >= head.epoch /\ head'.lsn >= head.lsn]_vars +\* #205 (S1, scoped to the active lease): the current holder's validity never exceeds the published horizon, and the +\* published horizon never exceeds the disk; they are equal unless a write outcome is unknown +HostWithinHorizon == ~lease.none => + \A h \in Hosts : (h = lease.holder /\ host[h].epoch = lease.epoch) => host[h].until <= lease.exp +DiskCoversMemory == ~lease.none => (lease.exp <= dhz /\ (~uncertain => lease.exp = dhz)) + \* reachability witnesses (each is EXPECTED to be violated) W_NoCleanServe == ~(journal.kind = "clean" /\ Serving("B") /\ hist.acked["A"] > 0) W_NoForcedServe == ~(journal.kind = "forced" /\ Serving("B") /\ hist.acked["A"] > 0) W_NoBCut == ~(head.holder = "B" /\ hist.bFirst # NoRec /\ head.gen > hist.bFirst.gen) W_NoRestartMove == ~(restarts > 0 /\ hist.takeover) +W_NoExtension == ~(~lease.none /\ lease.epoch = 1 /\ lease.exp > TTL + HSlack) \* an extension raised A's horizon +W_NoExtLanded == ~(~lease.none /\ dhz > lease.exp) \* a failed extension landed on disk +W_NoUncertain == ~uncertain TypeOK == /\ now \in 0..MaxT /\ head.gen \in Nat /\ stored \subseteq (Hosts \X (0..MaxCuts)) + /\ uncertain \in BOOLEAN /\ extReq \in -1..MaxT ============================================================================= diff --git a/seaweed-block/docs/spec/cfg/RED_early_assign.cfg b/seaweed-block/docs/spec/cfg/RED_early_assign.cfg index c2789b527e..9ca9fc16d6 100644 --- a/seaweed-block/docs/spec/cfg/RED_early_assign.cfg +++ b/seaweed-block/docs/spec/cfg/RED_early_assign.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = FALSE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoDualServing diff --git a/seaweed-block/docs/spec/cfg/RED_epoch.cfg b/seaweed-block/docs/spec/cfg/RED_epoch.cfg index c4947609dd..55b77b11b9 100644 --- a/seaweed-block/docs/spec/cfg/RED_epoch.cfg +++ b/seaweed-block/docs/spec/cfg/RED_epoch.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoOldCasAfterTakeover diff --git a/seaweed-block/docs/spec/cfg/RED_epoch_hostonly.cfg b/seaweed-block/docs/spec/cfg/RED_epoch_hostonly.cfg index 4884ce7a5f..627215a43f 100644 --- a/seaweed-block/docs/spec/cfg/RED_epoch_hostonly.cfg +++ b/seaweed-block/docs/spec/cfg/RED_epoch_hostonly.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoOldCasAfterTakeover NoLateChunkReachable diff --git a/seaweed-block/docs/spec/cfg/RED_epoch_storeonly.cfg b/seaweed-block/docs/spec/cfg/RED_epoch_storeonly.cfg index 163650f5d2..16cf2005e8 100644 --- a/seaweed-block/docs/spec/cfg/RED_epoch_storeonly.cfg +++ b/seaweed-block/docs/spec/cfg/RED_epoch_storeonly.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoOldCasAfterTakeover NoLateChunkReachable diff --git a/seaweed-block/docs/spec/cfg/RED_gc_ageonly.cfg b/seaweed-block/docs/spec/cfg/RED_gc_ageonly.cfg index 7181fb20b7..7a33af37c6 100644 --- a/seaweed-block/docs/spec/cfg/RED_gc_ageonly.cfg +++ b/seaweed-block/docs/spec/cfg/RED_gc_ageonly.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = FALSE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK GCSafe diff --git a/seaweed-block/docs/spec/cfg/RED_hz_noclamp.cfg b/seaweed-block/docs/spec/cfg/RED_hz_noclamp.cfg new file mode 100644 index 0000000000..60d5d9620a --- /dev/null +++ b/seaweed-block/docs/spec/cfg/RED_hz_noclamp.cfg @@ -0,0 +1,22 @@ +\* RED_hz_noclamp: #205 RED (EXPECTED violated): renewal answered from memory WITHOUT the horizon clamp grants validity beyond the durable horizon (run from docs/spec: ./run.sh RED_hz_noclamp) +SPECIFICATION Spec +CONSTANTS + Kinds = {"forced"} + MaxT = 4 + TTL = 2 + ITTL = 1 + MaxLSN = 2 + MaxCuts = 2 + Drift = 0 + MaxRestarts = 1 + LeaseOn = TRUE + LsnGuard = TRUE + StoreEpochGuard = TRUE + HostFence = TRUE + LayerLsnCheck = TRUE + SeedFromObserved = TRUE + GCEpochRule = TRUE + WaitLeaseExpiry = TRUE + Clamp = FALSE + ExtFail = FALSE +INVARIANT TypeOK HostWithinHorizon diff --git a/seaweed-block/docs/spec/cfg/RED_hz_noclamp_safety.cfg b/seaweed-block/docs/spec/cfg/RED_hz_noclamp_safety.cfg new file mode 100644 index 0000000000..ffbc8c68a0 --- /dev/null +++ b/seaweed-block/docs/spec/cfg/RED_hz_noclamp_safety.cfg @@ -0,0 +1,23 @@ +\* RED_hz_noclamp_safety: #205 control: without the clamp the restart rule still covers grants (expected to pass: the clamp is for S1 and fail-closed, not split-brain) (run from docs/spec: ./run.sh RED_hz_noclamp_safety) +SPECIFICATION Spec +CONSTANTS + Kinds = {"forced"} + MaxT = 4 + TTL = 2 + ITTL = 1 + MaxLSN = 2 + MaxCuts = 2 + Drift = 0 + MaxRestarts = 1 + LeaseOn = TRUE + LsnGuard = TRUE + StoreEpochGuard = TRUE + HostFence = TRUE + LayerLsnCheck = TRUE + SeedFromObserved = TRUE + GCEpochRule = TRUE + WaitLeaseExpiry = TRUE + Clamp = FALSE + ExtFail = FALSE +INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable ForcedLossBounded GCSafe +PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/RED_lsn.cfg b/seaweed-block/docs/spec/cfg/RED_lsn.cfg index 146314a001..37a1b25034 100644 --- a/seaweed-block/docs/spec/cfg/RED_lsn.cfg +++ b/seaweed-block/docs/spec/cfg/RED_lsn.cfg @@ -17,5 +17,7 @@ CONSTANTS SeedFromObserved = FALSE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK TypeOK PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/RED_lsn_storeonly.cfg b/seaweed-block/docs/spec/cfg/RED_lsn_storeonly.cfg index ee6c562e7b..a959a95480 100644 --- a/seaweed-block/docs/spec/cfg/RED_lsn_storeonly.cfg +++ b/seaweed-block/docs/spec/cfg/RED_lsn_storeonly.cfg @@ -17,5 +17,7 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_both.cfg b/seaweed-block/docs/spec/cfg/W4_both.cfg index defb4bbe28..5ebc51c670 100644 --- a/seaweed-block/docs/spec/cfg/W4_both.cfg +++ b/seaweed-block/docs/spec/cfg/W4_both.cfg @@ -17,5 +17,7 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_clean.cfg b/seaweed-block/docs/spec/cfg/W4_clean.cfg index a96f132365..75787a5b90 100644 --- a/seaweed-block/docs/spec/cfg/W4_clean.cfg +++ b/seaweed-block/docs/spec/cfg/W4_clean.cfg @@ -17,5 +17,7 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_clean_large.cfg b/seaweed-block/docs/spec/cfg/W4_clean_large.cfg index ed97a39b60..7cc398a976 100644 --- a/seaweed-block/docs/spec/cfg/W4_clean_large.cfg +++ b/seaweed-block/docs/spec/cfg/W4_clean_large.cfg @@ -17,5 +17,7 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_drift.cfg b/seaweed-block/docs/spec/cfg/W4_drift.cfg index 5a3f44b966..bafbe79583 100644 --- a/seaweed-block/docs/spec/cfg/W4_drift.cfg +++ b/seaweed-block/docs/spec/cfg/W4_drift.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoDualServing diff --git a/seaweed-block/docs/spec/cfg/W4_drift_heads.cfg b/seaweed-block/docs/spec/cfg/W4_drift_heads.cfg index 78d42cea93..a7d97c0ed3 100644 --- a/seaweed-block/docs/spec/cfg/W4_drift_heads.cfg +++ b/seaweed-block/docs/spec/cfg/W4_drift_heads.cfg @@ -17,5 +17,7 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoOldCasAfterTakeover NoLateChunkReachable ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_forced.cfg b/seaweed-block/docs/spec/cfg/W4_forced.cfg index d29d30835b..4bc6d011bb 100644 --- a/seaweed-block/docs/spec/cfg/W4_forced.cfg +++ b/seaweed-block/docs/spec/cfg/W4_forced.cfg @@ -17,5 +17,7 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_forced_exact.cfg b/seaweed-block/docs/spec/cfg/W4_forced_exact.cfg index 24ff032104..81b5759336 100644 --- a/seaweed-block/docs/spec/cfg/W4_forced_exact.cfg +++ b/seaweed-block/docs/spec/cfg/W4_forced_exact.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK ForcedLossExact diff --git a/seaweed-block/docs/spec/cfg/W4_forced_large.cfg b/seaweed-block/docs/spec/cfg/W4_forced_large.cfg index 7888ba01b0..cc517ff834 100644 --- a/seaweed-block/docs/spec/cfg/W4_forced_large.cfg +++ b/seaweed-block/docs/spec/cfg/W4_forced_large.cfg @@ -17,5 +17,7 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_hz_both.cfg b/seaweed-block/docs/spec/cfg/W4_hz_both.cfg new file mode 100644 index 0000000000..65971e9d11 --- /dev/null +++ b/seaweed-block/docs/spec/cfg/W4_hz_both.cfg @@ -0,0 +1,23 @@ +\* W4_hz_both: #205 durable horizon, both move kinds, failing extensions, one restart (run from docs/spec: ./run.sh W4_hz_both) +SPECIFICATION Spec +CONSTANTS + Kinds = {"clean", "forced"} + MaxT = 4 + TTL = 2 + ITTL = 1 + MaxLSN = 2 + MaxCuts = 2 + Drift = 0 + MaxRestarts = 1 + LeaseOn = TRUE + LsnGuard = TRUE + StoreEpochGuard = TRUE + HostFence = TRUE + LayerLsnCheck = TRUE + SeedFromObserved = TRUE + GCEpochRule = TRUE + WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = TRUE +INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover HostWithinHorizon DiskCoversMemory +PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_hz_clean.cfg b/seaweed-block/docs/spec/cfg/W4_hz_clean.cfg new file mode 100644 index 0000000000..7173d26318 --- /dev/null +++ b/seaweed-block/docs/spec/cfg/W4_hz_clean.cfg @@ -0,0 +1,23 @@ +\* W4_hz_clean: #205 durable horizon, clean move, extension writes may fail landed or not, one restart (run from docs/spec: ./run.sh W4_hz_clean) +SPECIFICATION Spec +CONSTANTS + Kinds = {"clean"} + MaxT = 4 + TTL = 2 + ITTL = 1 + MaxLSN = 2 + MaxCuts = 2 + Drift = 0 + MaxRestarts = 1 + LeaseOn = TRUE + LsnGuard = TRUE + StoreEpochGuard = TRUE + HostFence = TRUE + LayerLsnCheck = TRUE + SeedFromObserved = TRUE + GCEpochRule = TRUE + WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = TRUE +INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover HostWithinHorizon DiskCoversMemory +PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_hz_forced.cfg b/seaweed-block/docs/spec/cfg/W4_hz_forced.cfg new file mode 100644 index 0000000000..63720fa5f9 --- /dev/null +++ b/seaweed-block/docs/spec/cfg/W4_hz_forced.cfg @@ -0,0 +1,23 @@ +\* W4_hz_forced: #205 durable horizon, forced move, extension writes may fail landed or not, one restart (run from docs/spec: ./run.sh W4_hz_forced) +SPECIFICATION Spec +CONSTANTS + Kinds = {"forced"} + MaxT = 4 + TTL = 2 + ITTL = 1 + MaxLSN = 2 + MaxCuts = 2 + Drift = 0 + MaxRestarts = 1 + LeaseOn = TRUE + LsnGuard = TRUE + StoreEpochGuard = TRUE + HostFence = TRUE + LayerLsnCheck = TRUE + SeedFromObserved = TRUE + GCEpochRule = TRUE + WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = TRUE +INVARIANT TypeOK NoDualServing NoOldCasAfterTakeover NoLateChunkReachable CleanNoLoss ForcedLossBounded GCSafe NoLiveIntentExpired AttachOrder SeedMatchesTakeover HostWithinHorizon DiskCoversMemory +PROPERTY HeadMonotone diff --git a/seaweed-block/docs/spec/cfg/W4_hz_reach_ext.cfg b/seaweed-block/docs/spec/cfg/W4_hz_reach_ext.cfg new file mode 100644 index 0000000000..4b2ae416f2 --- /dev/null +++ b/seaweed-block/docs/spec/cfg/W4_hz_reach_ext.cfg @@ -0,0 +1,22 @@ +\* W4_hz_reach_ext: #205 witness (EXPECTED violated): an extension raises the holder's horizon (run from docs/spec: ./run.sh W4_hz_reach_ext) +SPECIFICATION Spec +CONSTANTS + Kinds = {"forced"} + MaxT = 4 + TTL = 2 + ITTL = 1 + MaxLSN = 2 + MaxCuts = 2 + Drift = 0 + MaxRestarts = 1 + LeaseOn = TRUE + LsnGuard = TRUE + StoreEpochGuard = TRUE + HostFence = TRUE + LayerLsnCheck = TRUE + SeedFromObserved = TRUE + GCEpochRule = TRUE + WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE +INVARIANT TypeOK W_NoExtension diff --git a/seaweed-block/docs/spec/cfg/W4_hz_reach_landed.cfg b/seaweed-block/docs/spec/cfg/W4_hz_reach_landed.cfg new file mode 100644 index 0000000000..aa1264372e --- /dev/null +++ b/seaweed-block/docs/spec/cfg/W4_hz_reach_landed.cfg @@ -0,0 +1,22 @@ +\* W4_hz_reach_landed: #205 witness (EXPECTED violated): a failed extension lands on disk above the published horizon (run from docs/spec: ./run.sh W4_hz_reach_landed) +SPECIFICATION Spec +CONSTANTS + Kinds = {"forced"} + MaxT = 4 + TTL = 2 + ITTL = 1 + MaxLSN = 2 + MaxCuts = 2 + Drift = 0 + MaxRestarts = 1 + LeaseOn = TRUE + LsnGuard = TRUE + StoreEpochGuard = TRUE + HostFence = TRUE + LayerLsnCheck = TRUE + SeedFromObserved = TRUE + GCEpochRule = TRUE + WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = TRUE +INVARIANT TypeOK W_NoExtLanded diff --git a/seaweed-block/docs/spec/cfg/W4_hz_reach_uncertain_restart.cfg b/seaweed-block/docs/spec/cfg/W4_hz_reach_uncertain_restart.cfg new file mode 100644 index 0000000000..22a4b4f678 --- /dev/null +++ b/seaweed-block/docs/spec/cfg/W4_hz_reach_uncertain_restart.cfg @@ -0,0 +1,22 @@ +\* W4_hz_reach_uncertain_restart: #205 witness (EXPECTED violated): with failing extensions a restart followed by a takeover is still reachable (run from docs/spec: ./run.sh W4_hz_reach_uncertain_restart) +SPECIFICATION Spec +CONSTANTS + Kinds = {"forced"} + MaxT = 4 + TTL = 2 + ITTL = 1 + MaxLSN = 2 + MaxCuts = 2 + Drift = 0 + MaxRestarts = 1 + LeaseOn = TRUE + LsnGuard = TRUE + StoreEpochGuard = TRUE + HostFence = TRUE + LayerLsnCheck = TRUE + SeedFromObserved = TRUE + GCEpochRule = TRUE + WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = TRUE +INVARIANT TypeOK W_NoRestartMove diff --git a/seaweed-block/docs/spec/cfg/W4_reach_bcut.cfg b/seaweed-block/docs/spec/cfg/W4_reach_bcut.cfg index 3201dfe6cf..b8515809cb 100644 --- a/seaweed-block/docs/spec/cfg/W4_reach_bcut.cfg +++ b/seaweed-block/docs/spec/cfg/W4_reach_bcut.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK W_NoBCut diff --git a/seaweed-block/docs/spec/cfg/W4_reach_clean.cfg b/seaweed-block/docs/spec/cfg/W4_reach_clean.cfg index dcc1ec1e69..95f11e83dc 100644 --- a/seaweed-block/docs/spec/cfg/W4_reach_clean.cfg +++ b/seaweed-block/docs/spec/cfg/W4_reach_clean.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK W_NoCleanServe diff --git a/seaweed-block/docs/spec/cfg/W4_reach_forced.cfg b/seaweed-block/docs/spec/cfg/W4_reach_forced.cfg index 58436d68e6..e810bc52e6 100644 --- a/seaweed-block/docs/spec/cfg/W4_reach_forced.cfg +++ b/seaweed-block/docs/spec/cfg/W4_reach_forced.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK W_NoForcedServe diff --git a/seaweed-block/docs/spec/cfg/W4_reach_restart.cfg b/seaweed-block/docs/spec/cfg/W4_reach_restart.cfg index 991eb9dca9..160fb8d535 100644 --- a/seaweed-block/docs/spec/cfg/W4_reach_restart.cfg +++ b/seaweed-block/docs/spec/cfg/W4_reach_restart.cfg @@ -17,4 +17,6 @@ CONSTANTS SeedFromObserved = TRUE GCEpochRule = TRUE WaitLeaseExpiry = TRUE + Clamp = TRUE + ExtFail = FALSE INVARIANT TypeOK W_NoRestartMove