mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
647ba061199fa561b340318f7652fbffa86c6e5c
Hosts report the format they read (heartbeat reads_level). The cluster's format level is the master's attestation file's form: v1.0's bare map is level 0, the envelope (format 2, format_level 1) level 1. At level 0 the master keeps v1.0's semantics, so a v1.0.x master started on the store stays safe: renewals clamp to the persisted horizon and an extender keeps it current; forced moves and re-grants wait for the later of horizon and deadline plus skew; records are envelope version 1. sw-block cluster finalize-format raises the level in one durable step (the envelope write), refused while a registered host has not reported that it reads level 1; then the publisher switches under both its locks. At any level no new work goes to a host that reads below it; its heartbeat is refused binary_too_old; every assignment carries the level. sw-block cluster retire-host removes a host that holds no volume. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%