mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
7dd83eb6c0c0d72368d6f49b22e2613fe25e4813
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>
Languages
Go
84.8%
Rust
7.6%
Shell
2.7%
templ
1.5%
Java
0.9%
Other
2.3%