mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 02:57:37 +01:00
seaweed-block: docs: the unit check covers every blockvolume unit; the notes drop the unconditional renewal claim
Review: the restart-binary check enumerates every blockvolume unit file and template instance (sw-blockvolume*, loaded or not), since a systemctl glob skips an enabled but stopped unit; and the v1.1.2 notes now require the latest received report, say a v1.1.2 process renews only after its own first answered heartbeat, and state the delayed-report residual instead of claiming an old replacement can never extend a lease. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0e4fc3f35b
commit
deea764e4b
2 files changed
+12
-5
No files matched your search
@@ -630,8 +630,13 @@ writing the v1.0 format until you finalize. Until then you can go back.
|
||||
# 1. Every RUNNING volume process: /proc/<pid>/exe runs the image that process is running,
|
||||
# even if an upgrade has since replaced the file on disk.
|
||||
for pid in $(pgrep -x blockvolume); do printf '%s ' "$pid"; sudo /proc/"$pid"/exe --version; done
|
||||
# 2. The binary each unit would start on a restart.
|
||||
for b in $(systemctl cat 'sw-blockvolume@*' | sed -n 's/^ExecStart=\([^ ]*\).*/\1/p' | sort -u); do printf '%s ' "$b"; "$b" --version; done
|
||||
# 2. The binary each unit would start on a restart: every blockvolume unit, loaded or not (an enabled but
|
||||
# stopped unit is not loaded, so a systemctl glob alone would skip it).
|
||||
units=$(systemctl list-unit-files 'sw-blockvolume*' --no-legend | cut -d' ' -f1
|
||||
systemctl list-units --all 'sw-blockvolume@*' --no-legend --plain | cut -d' ' -f1)
|
||||
for b in $(for u in $units; do systemctl cat "$u"; done | sed -n 's/^ExecStart=\([^ ]*\).*/\1/p' | sort -u); do
|
||||
printf '%s ' "$b"; "$b" --version
|
||||
done
|
||||
```
|
||||
|
||||
Every line of steps 1 and 2 must print exactly the reference line, with `modified=false`. A line with another
|
||||
|
||||
@@ -16,9 +16,11 @@ that the holder stopped. Upgrade and report from that holder before retrying. A
|
||||
from the serving check, but a retained placement with a fresh level-0 report still blocks the host-side check;
|
||||
move that placement away or upgrade the placed process and report level 1 before retrying.
|
||||
The serving check excludes clean ACKed releases and leases proven ended; an unserved placement needs no report.
|
||||
First serving deadlines, re-grants and live renewals require the current process's level-1 report during
|
||||
finalize and after level 1 commits. A replacement old or unreported process cannot extend a live lease.
|
||||
Current capable processes renew without waiting for the store write. This changes no persisted format or rollback-before-finalize rule.
|
||||
First serving deadlines, re-grants and live renewals require the latest level-1 report blockmaster received for
|
||||
the volume during finalize and after level 1 commits. A v1.1.2 volume process renews only after blockmaster has
|
||||
answered its own first heartbeat, and an old process's own report refuses its renewals once it lands. A delayed
|
||||
report can still stand in for a newer process, so the host-verified operator rule below is what keeps the finalize
|
||||
safe in that case (stated, not closed in v1.1.2). Capable processes renew without waiting for the store write. This changes no persisted format or rollback-before-finalize rule.
|
||||
Moves and authority publication remain placement: an unknown target may be placed; only a known-old report refuses it.
|
||||
An issued move record alone permits no serving. The target must report and get an accepted renewal reply first.
|
||||
|
||||
|
||||
Reference in new issue
Block a user