mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 19:17:28 +01:00
bbbc613c3ed0ee15a832b8a11ef8d3adbe2d0c20
1722
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
5577472124 |
seaweed-block: guard format finalize with serving-holder reports (#13448)
* test(block): expose serving-report and finalize grant races * fix(block): guard format finalize with serving-holder reports * test: pin finalize intent crash and refusal behavior * fix: retain current process report checks across finalize * fix: distinguish format placements from serving grants * fix: preserve durability exit contract and strengthen finalize controls * Normalize finalize manual ending after master merge * fix(block): preserve capable refresh and report waits during finalize * seaweed-block: pass the published line to the refresh owner check The same-owner refresh check passed VolumeAuthorityLine's AuthorityBasis to workspaceLineOwner, which takes a PublishedLine, so core/host/master did not build. Resolve the owner through workspaceSourceHost, which reads the published line for the same replica and epoch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: wait on a published line's owner, not every placed slot A move does not rewrite the placement, so once a volume moved, its former host's slot stayed in the grant waits. When that host's report for the volume expired, the slot became a wait the new holder's reports never cleared, and the status stayed degraded. The new holder, absent from the placement, got no wait at all. A volume with a published line now waits on the line's owner only; placed slots wait until a line exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: judge a heal or failover on the volume's own report Only a same-owner endpoint refresh judged the volume's own process. A heal of the current holder after a failed fence round, or a failover to a replica's committed holder, places no new work on that server either, but it still read the server's lowest level, so one old sibling process refused the recovery of a capable holder. A reassign to the replica's committed holder now judges the volume's own report like the refresh; a new placement keeps the server-wide gate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: red: a holder renews its lease before its first heartbeat is answered Identity check (1) of the format finalize bound: until the master answers a holder process's first heartbeat (which names its incarnation), it holds only the predecessor's report for the volume, so a renewal in that window is judged on the predecessor's proof. The lease runtime starts as soon as the assignment epoch is known, independent of the heartbeat loop: with the first heartbeat held open the holder renews anyway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a holder's first lease renewal waits for its first answered heartbeat The heartbeat loop closes a signal when the master first answers this process's heartbeat; the workspace lease runtime starts its guard (and so its first renewal) only after it, so every renewal is judged on this process's own report. A host whose heartbeat loop never started has nothing to wait for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a v1.0-shaped heartbeat supersedes the cached report, so its renewals are refused Identity check (2) of the format finalize bound: a heartbeat with no incarnation and no reads level, from a new process on the holder's server, replaces the capable predecessor's report for the volume (as level 0), so that process's renewals are refused at level 1 and during the finalize intent; the capable process renews again after reporting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the wait for the first answered heartbeat is bounded; past it the holder fences Ruling: the first renewal waits for the first answered heartbeat at most one lease validity (the longest validity a reply may carry); past that the lease runtime installs its guard fenced, so a holder whose heartbeat is never answered neither renews nor serves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the v1.0-heartbeat check's intent case runs a real finalize The intent case set only the master's finalizing flag; the renewal check reads the publisher's own flag, which BeginFormatFinalize sets, so at level 0 that case never reached the check. It now holds a real finalize at its durable barrier, as the serving tests do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the operator procedure before the format finalize The finalize section of the operations manual and the v1.1.2 notes state the operator bound for the window before a new process's first answered heartbeat: no v1.0.x volume process running or able to start until the finalize completes, and a wait of at least 30 seconds after the last volume process start. v1.1.3 carries the process identity on every renewal and removes the procedure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the first-heartbeat tests witness the window, test the bound and join the runtime Review: the held-heartbeat test now waits until the first heartbeat is inside the master's handler before checking that no renewal arrives, so the window is witnessed open; the fence test checks that the lease runtime waits its configured bound, no less, and names it in the fence cause; both tests join the lease runtime within a bound at cleanup, before the host and the server close. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the finalize operator text becomes a hard rule checked on each host Ruling: a delayed heartbeat report can stand in for a newer process, so the 30 s wait alone does not close the window. The manual and the v1.1.2 notes now state a hard rule, no v1.0.x volume process runs or starts from the end of the upgrade until the finalize completes, checked on each host from the running processes and the units rather than through blockmaster; the wait stays as a backstop, and the remaining case is stated, not claimed closed. v1.1.3 removes the rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the host check matches what --version prints; the guarantees name the latest report Review: blockvolume --version prints 'revision=<commit> modified=<...>', not a release number. The hard-rule check now compares every running process's and every unit binary's line with the installed v1.1.x binary's, and stops on another revision, modified=true or unknown, an error or no output. The 30 s wait is described as usually catching a missed process, not guaranteed to; the residual says a delayed report can come from a stopped old process and grounds safety in which process can still serve. The finalize ledger rows require the latest received report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the fence test checks the bound from both sides; a failed join stops before teardown Review: the never-answered test now measures from the lease runtime's own wait start (a test hook) to its return and requires the bound, no less and at most 500 ms more, so a runtime fencing at ten times the bound fails it. The rig's cleanup join is fail-stop: a lease runtime that does not return within 10 s stops the test binary before the host, the server and the shared settings are torn down; a negative test covers the join. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * 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> * seaweed-block: the rig's failed join exits without unwinding, proven in a child Review: a panic in a cleanup still runs the later cleanups, so teardown happened under a live worker. A failed join now ends the test binary with os.Exit(3); a child test binary proves it: with a worker that never returns it exits 3 and a later teardown cleanup never runs (its marker is absent), with a returned worker it passes and the marker is present. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the unit check includes unloaded instances overridden by their own drop-ins Review: list-unit-files finds unit files and templates, and list-units finds instances in memory, so an unloaded instance whose ExecStart is set only by its own drop-in directory was missed. The inventory now also takes the enabled instance links and the instance drop-in directories; systemctl cat on an instance shows the template with its drop-ins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the fail-stop witness's child is bounded and joined Review: the child test binary ran with no deadline, so a join that hangs would hang the witness. It now runs under a 30 s context (killed and reaped at the deadline, with -test.timeout=20s of its own), and a timeout fails as a timeout, never as the expected exit 3. A join that hangs instead of exiting fails the witness in about 23 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the ledger names the new regression tests; the manual's renewal guarantee names the latest report Review: INV-FMT-FINALIZE-001 and INV-FMT-ELIGIBLE-001 name the sibling refresh/reassign, placed and moved-owner wait, queued-finalize, v1.0-heartbeat and first-heartbeat tests with their files; the FormatGate r12 citation is marked as checked outside the repository; and the manual's finalize section requires the latest received level-1 report, says an old replacement is refused once its own report is received and that the first-heartbeat wait does not identify the caller, and points at the operator rule for a delayed report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: name the renewal validity cap the first-heartbeat wait is bound to firstHeartbeatWait is documented as one lease validity, the longest a renewal reply may carry, but repeated Refresh's 30 s literal. Both now use maxRenewalValidity, so a change to the cap moves the bound with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the unit check searches every unit path for instance overrides The instance search read only /etc/systemd/system and /run/systemd/system, and only .wants links. A drop-in in another unit path (/usr/local/lib or /usr/lib/systemd/system) applies to the instance the same way, and an instance linked through .requires is enabled too, so an old ExecStart set there passed the check. The search now walks systemd-analyze unit-paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the finalize ledger row names the files of its older finalize tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: operator wording for the finalize release note, unit check and refusal hint Review (wording only): the release note's Format finalize paragraphs are rewritten for operators (what refuses, what to do, exit 74 and format-level after a restart, the last-received report); the manual's version lines must end with the reference line after the pid or path; the unit check strips systemd's ExecStart= prefixes (-, @, +, !, :) so an ignore-failure override is checked rather than refused; the finalize bullet keeps only what an operator acts on; and the refusal hint says to upgrade the named process and let it report, not to make it report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the release note's exit 74 covers only an uncertain replacement Review: a write, sync, close or rename failure of the new file is an ordinary error before the replacement (the level stays 0, no exit); only a failure after the rename, when the new level may not be durable, exits 74. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the M4 lease guard shows the first-heartbeat gate; the unit check tolerates blanks around ExecStart= Review: the M4 diagram and table now show that a renewal from NoLease waits for this process's first answered heartbeat, and that NoLease fences when none is answered within firstHeartbeatWait (one lease validity), naming runWorkspaceLease and INV-FMT-FINALIZE-001. The manual's unit check accepts blanks around '=' as systemd does, skips only the empty reset, and prints a line that stops the check when a value yields no binary; the version call no longer reads the loop's input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the unit check covers copied volume units; listed names an idle old process Review: the host check found units by the shipped name only, but the shipped unit says to copy it for more volumes, so a stopped copy was missed. The inventory now takes every unit, loaded or not and under any name, whose file, drop-in or enabled link mentions blockvolume; only ExecStart values that name blockvolume are checked, and one that runs it through another program prints a stop line. The listed bullet now includes a fresh level-0 report from a process that holds no volume. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the unit check runs every ExecStart value of every selected unit Review: a unit with the current blockvolume base, an empty ExecStart= reset and a renamed old binary in a drop-in printed only the base's good line, because the check kept only values naming blockvolume. Every non-empty ExecStart value of every selected unit, overridden or not, now runs with --version and its line names the unit; a renamed binary, a wrapper or a missing binary prints a non-reference line and stops the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the unit check never runs a program that is not blockvolume Review: a wrapper, /bin/sh -c or a site script ignores --version and runs as written. Only a binary named exactly blockvolume is now run; any other ExecStart value prints 'NOT a blockvolume binary: confirm by hand' without being executed, which is not the reference line, so the check still stops on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the unit check reads every start directive; the operator confirms the rest Review: ExecStartPre, ExecStartPost and ExecReload values are now checked with the same rule as ExecStart. Units are found by the text blockvolume, so a unit or script that starts a renamed binary without naming it cannot be found by text search; step 2 now says the checks are helpers and adds the rule line: confirm no other unit or script on the host starts a v1.0.x volume binary. The listed bullet names a stale report at any level, not only a capable one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: pingqiu <pingqiu@users.noreply.github.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d4893ebffb |
seaweed-block: sw-block mini starts as any user with no sudo (#13421)
* seaweed-block: sw-block mini starts as any user with no sudo blockvolume gets --volume-lock-dir, a trial-run override of the host volume lock directory (refused under systemd and together with the test override). sw-block mini passes <dir>/locks to its holder, so it starts as any user on a host without /run/sw-block. mini also runs v1 with no scheduled snapshot (it prints the command that takes one), names sw-block and weed by their absolute paths in every command it prints, and after a failed start stops what it started and prints the --reuse command for the same --dir. The release archive carries sw-block.tmpfiles.conf for the units' lock directory. The README Quick Start drops its sudo lines, and the v1.1.1 known issue reads fixed in v1.1.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: mini under a systemd process tree, and no new lock-dir flag (on #13421) (#13425) * seaweed-block: mini starts its children without INVOCATION_ID Run from a systemd service's process tree (a CI runner unit, a terminal server), mini passed INVOCATION_ID to blockvolume, which then refused mini's lock directory and the run stopped at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: mini's interrupt test expects the resume command with mini's own path mini prints the resume command with os.Executable(), so the in-process test saw the test binary's path, not a bare sw-block, and failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: mini uses the existing hidden lock-dir override, no new flag --volume-lock-dir set the same field as the hidden --volume-lock-dir-test-only with the same systemd refusal, and mini was its only caller. Keep one hidden override so operators are not offered a documented knob that drops the one-holder-per-volume guarantee outside systemd (containers, hand-run hosts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * docs: track mini resolve helper time bounds * Test active release assets and relative mini paths * Complete mini release assets and bounded process checks * Terminate owned mini groups before checking for residue * Accept inaccessible host locks as a non-root precondition * Harden mini test ownership and fail-stop cleanup * test: reproduce empty filtered mini child environment * fix(block): complete mini startup and cleanup proof * test(block): claim the mini test's ports host-wide The pid-derived --port-shift put mini's 13 ports inside the handoff and weed pair ranges the other process-level harnesses claim, unclaimed, so a parallel CI shard could bind one of them. Pick a shift whose every port is claimed and free, as handoffAddress does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(block): claim the failed-start mini launch's ports too The second launch ran at shift+1, whose ports were neither claimed nor checked, so a parallel shard could take one and fail the launch before it reached the deliberate blockvolume refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(block): exercise production mini hint with quoted paths * docs(block): explain mini local data lock scope * fix(block): preserve mini executable and cleanup proof * test(block): settle a leader that exits as member capture expires stopGroup checked done only at the top of each capture iteration. A leader that exited after that check, once the one-second window had passed, made the next failed read fail-stop even though the group had settled. Both capture deadlines now defer to assertStopped when done has closed, so live residue still fail-stops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(block): refuse a PATH weed found through the current directory exec.LookPath reports exec.ErrDot for a weed found only through . in PATH. Making that name absolute let exec.Command start it, where it refused before; mini now refuses it and names --weed ./weed as the explicit choice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(block): accept a reused --weed that names the recorded executable A relative --weed made absolute from another working directory names the same file through a different path; mini compared the strings and refused the retry. Compare file identity when the paths differ, so a different executable is still refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(block): prove the selected weed ran in the mini startup tests A start failure and the fixture weed's exit both return 1, and the printed command and the record exist either way. The dying fixture weed now writes a marker file, and both startup tests require it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(block): name the mini trial lock in the M4 start arrows The table already says a mini trial's blockvolume locks the run's --dir/locks; the diagram's start arrows still named only the host lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(block): shell-quote mini's startup trace Making --weed absolute can put a space from the working directory into the printed command. Quote the executable and each argument with shQuote, as mini's other printed commands already are, so the trace runs as printed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(block): count the mini group again when it is gone after a census A member listed by the census can exit before the signal-0 query reports ESRCH. On the iteration that crosses the deadline that stale count fail-stopped a settled group. Count again when the group is absent, so only a member still listed holds the settlement; the residue control still fail-stops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(block): name the empty-census case in the mini group fail-stop A group that still exists while the census lists no live member failed with "live residue []". Say what it can be: a member the census missed, or zombies their new parent does not reap. Both stay fail-stops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(block): match the quoted failed-start trace in the non-root mini test The startup trace is shell-quoted now, and this test's weed path has a quote in it, so match each binary through miniHintWord. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(block): let --reuse take its recorded run past a weed found through . The exec.ErrDot refusal ran before the record was read, so a reuse of a recorded run failed whenever . in PATH found a ./weed, although the reuse would use the recorded weed (or none for a walstore run). A reuse now ignores that weed; a fresh start still refuses it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(block): match the shell-quoted start trace in the mini unit tests mini shell-quotes each word of its "+" trace, so a TMPDIR holding a space prints the blockmaster, blockvolume and weed paths quoted, and three unit tests looked for them bare. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(block): pin that a normal start keeps the host volume lock A start under systemd (INVOCATION_ID set, as every shipped unit runs) gets no lock directory of its own, so the provider uses the host one, and the hidden test-only override is refused, naming the host lock directory. The test is listed under INV-WS-ONE-PROCESS-PER-HOST-001. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(block): mini quotes the --weed path in its dot-in-PATH hint Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> |
||
|
|
eb19e93f7b |
seaweed-block: activate the spec deletion retry invariant (#13493)
* docs(block): activate the specification retirement retry invariant * docs(block): cite retirement retry and pacing coverage * test(block): assert the retirement worker joins before stores close Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(block): cite the close-order test for INV-SPEC-DELETE-RETRY-001 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: pingqiu <pingqiu@users.noreply.github.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
687c2844c3 |
seaweed-block: classify operator failures by admission evidence (#13477)
* seaweed-block: unify operator answer policy with admission evidence * seaweed-block: failover keeps exit 3 for a caller deadline before send A failover whose caller deadline passed before the request was sent (e.g. a master that never completes the handshake) is Recover under the failover contract, so the command prints result=unknown and asks the operator to read the current line. The canonical projection gave it exit 1, which the help text reserves for a definite answer, while v1.1.x returned 3. Add the failover legacy row next to the unsent remote-failure one so the exit matches the printed outcome. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: document the failover caller-deadline exit The failover help, the v1.1.x legacy table and the classification design note name the caller deadline before send next to the unsent remote failure as the two failover cases that keep exit 3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test CA rotation with unused expired and future roots * Allow unused CA alternatives during certificate rotation * seaweed-block: workspace caller deadline before send is not a master refusal A workspace RPC whose caller deadline passed (or was canceled) before it was sent projects to exit 1, and the exit-1 branch turned it into OutcomeRefused. force-move then printed "refused by the master (nothing moved)" and read an admission preview, though the master never answered. Report these as unsent; the policy exit stays 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: master-crash test expects the shared refusal presentation Competing clean moves after the master restart are still definite refusals (exit 1). The workspace client now keeps the gRPC status in the error chain and appends the registry cure, so the stderr line carries the status prefix and "resolve the server's stated precondition before retrying". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Cover CA rotation in the Kubernetes status writer * test: pin answer precedence and certificate-chain boundaries * fix: preserve answer provenance through observation and recovery * fix(block): preserve admitted outcomes and caller completion * fix(block): preserve response precedence and refusal origin * Preserve definite refusals and admitted operation recovery * docs(block): forced-move unknown row covers possibly admitted failures A proven-unsent transport failure of a forced move reports nothing sent and exits 75, not an unknown outcome. Narrow the row and cover the unsent path at the command (holder read refused) and in the client (move RPC). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Consolidate domain recovery selection * Retain response and admission evidence for unusable answers * Pin command answer entries and preserve recovery identities * Document uncertain HTTP status outcomes completely * Keep publication identity when status persistence also fails * Require size-limit evidence in oversized response controls * Preserve unresolved results and verify received operation identities * Focus failure release notes on operator recovery * Qualify unsent and certificate failure exit guidance --------- Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ee547ef399 |
seaweed-block: stop lifecycle ancestor sync at the state filesystem boundary (#13475)
* Stop lifecycle ancestor sync at the state filesystem boundary
* docs(block): preserve existing master state when changing filesystems
* docs(block): sync the migrated master state before remounting
* docs(block): require the migrated state mount before master startup
* docs(block): keep blockmaster from starting during the state migration
A stopped but enabled blockmaster starts at the next boot, and a v1.1.0
volume unit's restart pulls it in through Wants=. Either can start it
against the source being copied or the empty state path. Disable it for
the migration, stop v1.1.0 volume units first, and enable it with the
final start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): keep an old state filesystem as the migration backup
When the old state directory is itself a mount point, moving it aside
moves only the empty mount-point directory; the stores stay on the old
filesystem. Unmount it, keep it intact as the backup, and drop its
persistent mount so it does not come back over the new one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): unmount a dedicated master state filesystem before removal
rm -rf on the mounted state path deletes its contents, then fails on the
mount root, and the && chain never removes the units, binaries or user.
Empty and unmount it first, drop its persistent mount, and remove the
blockmaster drop-in with the other unit overrides.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): disable stopped v1.1.0 volume units during the state migration
A v1.1.0 volume stop only stops the unit, and the v1.1.0 unit Wants=
blockmaster, so a reboot mid-migration started the volume and with it
the disabled blockmaster before the mount guard was installed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): move aside the directory an old state mount uncovers
Unmounting an old state filesystem can expose older files that the
mount hid, so that directory is not empty; leaving it at the state path
would put stale stores beneath the new mount.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): install the units before a new install's state mount drop-in
The new-install sentence sent the operator to the mount drop-in before the
units were installed, and `systemctl edit` refuses a unit that does not
exist yet. Install the units first, then mount the state filesystem and
configure its persistent mount and drop-in, before the first start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): verify the lifecycle store only when one is configured
The shipped blockmaster.env leaves --lifecycle-store unset, so an
installation on it has only the authority store; the migration's
verification step required a lifecycle store it could not find. Check
the authority store, and the lifecycle store when --lifecycle-store is
set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): keep the sw-block removal off filesystems mounted below it
find and rm -rf both descend into a filesystem mounted below the state
or volume directories and delete its contents before failing on the
mount point. Unmount such filesystems first, and run the removal with
-xdev and --one-file-system so a missed one stops it with its data kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): refuse the sw-block removal while a bind mount sits below it
-xdev and --one-file-system compare device numbers, so a bind mount from the
same filesystem looks like a plain directory to them and the removal deletes
its source's contents. Both removal commands now list mounts below the
sw-block directories and remove nothing while one remains.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(block): require removal of same-device nested mounts
* docs(block): scope state isolation to measured directory syncs
* docs(block): refuse mounts at removal operand roots
* docs(block): name the state filesystem where 'it' lost its antecedent
|
||
|
|
2a7cee5dda |
seaweed-block: a fenced replace always reaches a publication (#13435)
* fix(master): a promotion gate's replace decision logs what the controller did with it A replace decided by the promotion gate went to the topology controller, which can drop it on six paths without a word. These are: a stale basis, superseded slot facts, a boot-grace hold, no evidence on the target, an ask that is already desired, and an unsupported topology. When a volume then did not fail over, nothing on the master's log said why. The controller now records, per volume, what its last intake did: the ask it enqueued, or why it enqueued none (LastOutcome). After each tick's submit, the master logs every replace decision with that outcome, or with why the decisions were not submitted. Every publication is logged too. The creation-gap process test derives its failover bound from its own flags: one loop to the tick that ends creation, plus the freshness window to the loss, plus one loop to the tick that reads it. It waits twice that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a replace decision is reported with its own submission's outcome, and on a binding-read failure Review round 1: - The tick reads the controller's outcome for each volume inside the intake that carried it (SubmitObservedStateOutcomes, under the controller's lock): the background observation host shares the controller and may submit before a later read. - A workspace binding read that fails after the probe reports the tick's replace decisions as not submitted, with the error, before returning. - The production-tick test waits for the publication line (bounded): the publisher logs it from its observer after the line is visible. - A replace decision is identified by a flag set where it is decided, not by its display text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: red: a gate replace the controller keeps, and a lost Reassign held for ever Two reds for the master's fenced replace that never publishes. A primary only the gate rejects (its node reads an older format level, its own flags still read reachable and ready, no loss recorded) is replaced by a fencing round on every tick, and the controller answers "no ask: the current primary is acceptable" on every tick. A Reassign the publisher took and ended without publishing is lost, and the same-ask dedupe answers "already desired" on every later intake, so nothing enqueues it again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a fenced replace always reaches the controller as a failover, and a lost Reassign is enqueued again The gate marks the replaced primary's slot unacceptable in what it submits on every fenced replace, not only when a loss is recorded. A primary only the gate rejects (a node below the cluster's format level) was kept by the controller's own acceptability predicate on every tick. The same-ask dedupe holds a desired ask only while it is pending: queued, or taken by the publisher and still being applied (the queue records the ask the publisher holds until it asks for the next one). An identical ask that is neither ended without a publication and is enqueued again, keeping its DesiredAt so a repeatedly lost ask still reports Stuck. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: ledger row for the replace-decision report Review round 2: Part C rule 4. INV-PROMOTE-DECISION-REPORTED-001 names the regression tests this change adds (an intake after the submission, the binding-read failure after the probe) and their enforcing functions. Diagnostics only: no state machine or model change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the desired-ask retry keeps its DesiredAt to Stuck; contract rows Review round 2 (both P2s): - TestARepeatedlyLostReassignKeepsItsDesiredAtAndBecomesStuck runs four take -> ended-without-publication -> re-enqueue cycles across the retry window: DesiredAt stays the first desire and the Stuck evidence names it. A retry that re-anchors DesiredAt fails it. - docs/design/invariants.md: M2 gains the controller-ask machine between the promotion gate and the publisher (queued, held, lost, re-enqueued, Stuck; the fenced-replace handoff), with its diagram, and the rows INV-AUTH-DESIRED-RETRY-001 and INV-PROMOTE-REPLACE-HANDOFF-001 naming the regression tests. No published specification models this handoff; the rows say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: red: an ask published during the intake is enqueued again The publisher can publish the desired ask and come back for its next one between the line read an intake decides against and that intake's same-ask dedupe. The queue then holds nothing for the volume, so the dedupe reads the ask as lost and enqueues it again; a planned move carries no fence, so the publisher would mint it a second time at a new epoch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: split the replace-decision ledger row under the statement limit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a desired ask published during the intake is not enqueued again The lost-ask retry read "not pending" as "ended without a publication", but the publisher also stops holding an ask once it has published it and asked for the next one. When that happens between the line read the intake decided against and the dedupe, re-read the line: the ask is lost only while the line is still the one it was decided against. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: gateNoteMu also guards gateReplaces Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: split the controller-ask contract rows to one property each INV-AUTH-DESIRED-RETRY-001 (346 characters) and INV-PROMOTE-REPLACE-HANDOFF-001 (459) were over the 300-character statement limit TestInvariantStatementsAreShort enforces. Each becomes two rows; the lost-ask row also names the published-during-intake regression and its line re-read guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the controller-ask rows cite the promotion liveness model r6 The model now splits the intake as the code does (read the line and decide; enqueue only if the ask is not pending and the line is unchanged). It holds RoundProgress and QueuedMatchesLine and catches the mutants dedupe_keeps_lost, predicate_split and nonatomic_submit. The four rows and the M2 controller-ask section name them; the retry window and Stuck are not modelled, and the rows say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: mark the PromoLive r6 citations as checked outside the repository (on #13435) (#13442) seaweed-block: mark the PromoLive r6 citations as checked outside the repository The convention says a TLA+ entry names a specification in docs/spec/, and PromoLive r6 is not there. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: red: a queued Reassign overwrites a later publication A controller Reassign waits in the queue until the publisher takes it. A failback published outside the queue in that window is overwritten by the ask decided against the older line, both for a first ask and for a lost one enqueued again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a controller Reassign names the line it was decided against The rebalance and failover asks carry ExpectCurrent, as the controller's endpoint refresh already does, so the publisher refuses one whose line moved while it waited in the queue. A refused ask ends without a publication and the next intake decides again against the new line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: a Reassign is refused when its expected line moved Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the Reassigned row states what the expected-line check compares Review: expectedLineMoved compares replica, epoch and addresses, so a same-address endpoint reissue (new endpoint version or incarnation) still matches and a queued move decided before it publishes; the move's epoch bump fences the reissued line. The row now says so instead of claiming every later publication. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the queued-rebalance known issue is fixed in v1.1.2 blockmaster's rebalance and failover now name the line they were decided against and are refused when it moved: the v1.1.1 known issue and the replicated preview's item 6 say it is fixed in v1.1.2, and the v1.1.2 notes list the fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the expected-line check compares addresses only when the ask names them Review: expectedLineMoved treats an empty expected address as a wildcard, and an operator's failback names replica and epoch only, so an endpoint move to other addresses does not refuse a failback. The Reassigned row now says the address comparison applies only to asks that name them (the controller's moves). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the v1.1.2 fix covers moves decided before the failover Review: a rebalance decided after an operator's failover names the new line and can still move the primary; the fixed-in note now covers only a move decided before the failover. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> |
||
|
|
6ecc5c0ed0 |
Blockmaster: retire deleted metadata outside the serving path (#13430)
* perf(blockmaster): retire deleted metadata outside the serving path * docs(block): cite the post-start retirement progress model * test(block): drop the retirement layout identity probe site The retirement pass no longer reads the record's LayoutID (the deferred HEAD read log now goes through the pass skip summary), so the guard's allowlist entry is stale and TestLayoutIdentityWriterAndReaders fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(block): keep INV-SPEC-DELETE-RETRY-001 under the statement limit The rewritten statement was 586 characters, over the 300 that TestInvariantStatementsAreShort allows. Keep the property in the statement and move the visit bound to the DeleteReserved transition row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(blockmaster): keep idle retirement passes silent The worker runs a pass every freshness window (10 s by default), and each pass logged a start and an end line even with nothing to retire: two lines every 10 s on every idle master. Report a pass only when it has pending eligible records. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(block): align retirement traces with the current model * test(block): pin retirement recovery and complete slow-pass evidence * test(block): resume restore setup after filer reconnects * fix(block): isolate retirement catalog connection * test(block): remove unused restore retry import * docs(block): describe retirement guards per attempt --------- Co-authored-by: pingqiu <pingqiu@users.noreply.github.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
b807d48e2f |
seaweed-block: use exit 74 for lifecycle persistence faults (#13474)
* Use durability-unknown exit for lifecycle persistence faults * Document the lifecycle durability-unknown exit in release notes * Align lifecycle transition labels with exit 74 * seaweed-block: INV-LIFECYCLE-FAILSTOP-001 states exit 74 The lifecycle fail-stop tests now require authority.ExitDurabilityUnknown, so the contract row names that status instead of any nonzero one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: ExitDurabilityUnknown names the lifecycle fail-stop Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(block): distinguish durability exit from lifecycle log reason --------- Co-authored-by: pingqiu <pingqiu@users.noreply.github.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
10b949183c |
seaweed-block: a promotion gate's replace decision logs what the controller did with it (#13428)
* fix(master): a promotion gate's replace decision logs what the controller did with it A replace decided by the promotion gate went to the topology controller, which can drop it on six paths without a word. These are: a stale basis, superseded slot facts, a boot-grace hold, no evidence on the target, an ask that is already desired, and an unsupported topology. When a volume then did not fail over, nothing on the master's log said why. The controller now records, per volume, what its last intake did: the ask it enqueued, or why it enqueued none (LastOutcome). After each tick's submit, the master logs every replace decision with that outcome, or with why the decisions were not submitted. Every publication is logged too. The creation-gap process test derives its failover bound from its own flags: one loop to the tick that ends creation, plus the freshness window to the loss, plus one loop to the tick that reads it. It waits twice that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a replace decision is reported with its own submission's outcome, and on a binding-read failure Review round 1: - The tick reads the controller's outcome for each volume inside the intake that carried it (SubmitObservedStateOutcomes, under the controller's lock): the background observation host shares the controller and may submit before a later read. - A workspace binding read that fails after the probe reports the tick's replace decisions as not submitted, with the error, before returning. - The production-tick test waits for the publication line (bounded): the publisher logs it from its observer after the line is visible. - A replace decision is identified by a flag set where it is decided, not by its display text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: ledger row for the replace-decision report Review round 2: Part C rule 4. INV-PROMOTE-DECISION-REPORTED-001 names the regression tests this change adds (an intake after the submission, the binding-read failure after the probe) and their enforcing functions. Diagnostics only: no state machine or model change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: split the replace-decision ledger row under the statement limit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: gateNoteMu also guards gateReplaces Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> |
||
|
|
08aeac6b53 |
seaweed-block: sw-block metadata writers send the chunk condition; ChunkGuard reports it truthfully (#13471)
* seaweed-block: red: a snapshot delete is published over a page whose data was freed Two overlapping runs of one snapshot delete write their intent pages under the same tag. If the first run's stalled page update lands between the second run's read of a page and its adoption (after a cleaning pass deleted and the second run re-staged the page), the second run adopts and publishes an intent whose page data was freed: later snapshot deletes on the volume are refused and its cleaning stops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a snapshot delete re-reads each intent page after adopting it Publication reads every intent page, adopts it under this run's tag, then publishes. A stalled update from another run of the same delete can land between that read and the adoption and put a deleted page's data reference on the entry. Reading the page again after the adoption, before the transition publishes, refuses that case: once this run's tag is on the entry, no such update passes. No persisted change; a run that hits it stays refused, and a new request id writes new pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: ledger row for the intent page re-read INV-SNAPSHOT-DELETE-ADOPT-002 names the re-read after adoption, its test and the model row it projects (PublishedReadable; the refused run is the residue a new request id clears). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the intent page re-read: typed refusal, twins and a store witness Review: the re-read test now separates the guard from weaker ones. A page that reads but holds other bytes, and a change to only the later of two pages, are refused as well as a freed page; the refusal is a precondition that writes nothing to HEAD, keeps the snapshot, and comes after the adoption; the same schedule with intact bytes publishes. The test is a consequence-level projection; a store-level witness shows the tag-only metadata update writing a deleted object's chunk over a re-created one, which the re-read does not depend on refusing. The ledger row names the witness and marks the model as checked outside the repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the intent page re-read keeps its error's cause The refusal wrapped the re-read's error with %v, so a caller deadline that ended the re-read reached the CLI as a precondition ("page changed during adoption", no_progress) instead of deadline_exceeded, unlike the same deadline on the chain's first read. Wrap both errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the intent page re-read sees only data the filer already freed The filer frees a deleted entry's chunks, and the chunks an update drops, from its deletion queue: polled every 1.123 s, and retried after 5 min when a volume server does not answer. A stale update that puts such a reference on an adopted page therefore reads back intact while the deletion is still queued, and the intent publishes over data that is freed moments later. The intact-bytes twin publishes for that reason. State that bound in INV-SNAPSHOT-DELETE-ADOPT-002 and at the guard instead of "changed or vanished ... refuses the publication". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the delete intent publication row and diagram carry the re-read Part C rule 2 moves a changed guard's Part A row and diagram with it. The publication row now names the re-read after adoption and INV-SNAPSHOT-DELETE-ADOPT-002, and the M9 diagram gains the transition's idle and snap self-loops, which it lacked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: red: a stale adoption or mark lands on a re-created object A metadata change writes the looked-up entry back, chunks included, conditional only on its tags: paused between its lookup and its update, it lands on an object deleted and created again with the same tags in between, puts the deleted object's chunk on it, and a cleaner's stale mark then deletes it. The filer's IF_CHUNKS_EQUAL condition refuses such a write. This commit adds the plumbing and the tests, not the guard itself: - the filer protocol subset gains WriteCondition (IF_CHUNKS_EQUAL) on UpdateEntryRequest; SWFS sends it through UpdateEntryIfChunks, and the fakes evaluate it (or drop it, as an older filer does); - a startup probe sends a mismatched conditional update to the disposable probe HEAD; only a definite refusal turns the guard on for the stores the catalog opens. The startup log and /status/chunk (metadata_guard) name it. The two guard tests fail here: changeMeta does not send the condition yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: metadata changes send the filer's chunk condition With the guard on (the startup probe saw the filer enforce it), an adoption or mark sends IF_CHUNKS_EQUAL with the looked-up entry's chunk fids. A re-created object always has a new chunk, so a stale whole-entry write is refused instead of putting a deleted object's chunk on it; a cleaner's delete expects its own mark and so follows. Without the guard the write is unchanged and the intent page re-read stays the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: ledger rows for the chunk condition and its probe INV-LAYOUT-META-CHUNKS-001 (adoption and mark under IF_CHUNKS_EQUAL) and INV-WS-CHUNK-CONDITION-PROBE-001 (the startup probe decides it, the log and /status/chunk name it); ADOPT-002 names the renamed store test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the chunk probe without a definite refusal leaves the guard off; fallback wording Review: the existing failure cases stop at the HEAD gate. New cases pass the gate and then fail only the chunk condition probe (unavailable, lost, deadline, filer error, vanished entry, failed HEAD read): the catalog, its stores, the startup log and the usage all stay on page_reread_only. page_reread_only now reads as enforcement not established, not as a filer without the condition; INV-SNAPSHOT-DELETE-ADOPT-002 cites MetaABA r2's delayed-free counterexample, r1 kept as historical scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: sw-block metadata writers run the chunk condition probe sw-block opens its catalog with NewBCatalog, and only DialBCatalog ran the probe, so a snapshot-delete, retain, release or volume-delete from the CLI sent its adoptions and marks without the chunk condition even on a filer that enforces it. bCatalog now runs the same probe (checkConditionalHead, via ProbeChunkGuard) for a writing command; a failed probe only leaves the guard off. Read-only commands write nothing. The volume-delete fakes that stall object deletes let the probe's own cleanup through. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: ChunkGuard reports only a chunk condition the filer can carry SetChunkGuard(true) on a store whose filer does not implement ChunkConditionFiler made ChunkGuard report true while changeMeta sent a plain UpdateEntry. Both now ask chunkCondition: the guard is on and the filer can carry the condition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: Part A rows for the chunk condition probe and guard Part C rule 2: the M4 table gains the startup probe's guard selection (INV-WS-CHUNK-CONDITION-PROBE-001), and the M9 publication, clean removal and list page retirement rows and diagram carry the chunk condition on adoptions and marks (INV-LAYOUT-META-CHUNKS-001), whose Part B row now names the clean removal as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: sw-block usage leaves out a metadata guard it never probed The usage command opens a read-only catalog, which runs no chunk condition probe, so its answer always said page_reread_only even over a filer every writer sends the condition to. The field is now omitted there; blockvolume's /status/chunk still reports its probed guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the sw-block chunk condition probe runs within --timeout A writing command ran the probe on context.Background(), so after a passing census a stalled disposable HEAD create held it for the probe's own 10 s whatever --timeout said. The probe now runs within the command's filer timeout; its cleanup keeps its own 5 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a stale sw-block adoption is refused through the CLI catalog The probe test proved only guard selection. This one composes it: through the store of the catalog bCatalog opens, an adoption paused between its lookup and its update while the object is deleted and created again is refused with the re-created chunk intact. An unchanged object is still adopted, and a catalog that ran no probe lets the stale write through. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the M9 diagram qualifies the chunk condition by the guard The adoption and mark labels read as always chunk-conditioned, while the tables beside them say so only with the guard on; guard off, the page re-read is the only check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a failed chunk guard probe turns the guard off ProbeChunkGuard set the guard only when checkConditionalHead got as far as the chunk probe, so a second call that failed earlier kept the first call's guard on. It now starts from off. Its comment also says a store takes the guard when it is opened, so the probe goes before the stores. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: pingqiu <pingqiu@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
7d960d01a3 |
seaweed-block: docs: warn about restart delays on busy state filesystems (#13472)
* docs: document blockmaster restart delays on busy filesystems * docs: correct measured startup range and lease safety explanation * docs: explain filesystem-wide import sync wait * docs: clarify import sync applies per changed store * docs: qualify restart continuity and ancestor sync exposure |
||
|
|
759b7f3a36 |
seaweed-block: test the import syncfs selector and report each store's import mode (on #13458) (#13469)
* seaweed-block: preserve unchanged imports and batch durable publication * seaweed-block: name the rejected entry in a startup import error The batch import returned the bare validation error, so a bad cluster-spec node or placement seed stopped startup without saying which entry. The per-entry RegisterNode/ApplyPlan loop named it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: name the import path in the freshness row and registry guard Startup now replays nodes through ImportNodes, not RegisterNode; list it where the freshness invariant and the registry-writer guard name the writers. Drop a doubled blank line in the operations manual. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: poison a lifecycle store only on a persistence error A node registration whose SeenAt cannot be encoded failed before any file I/O, but RegisterNode latched the marshal error and every later mutation returned ErrLifecycleRecoveryRequired until reopen. Latch only a RecordPersistenceError, as the volume store already did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: keep a node's SeenAt when its declaration changes registrationLocked kept SeenAt only for an unchanged declaration. A restart that changed a node's declared pools or address stamped the current time, so a silent node passed the stale-observation check. A declaration without an observation time now keeps the stored one; a new node still gets the current time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: use the import syncfs only on filesystems that report its errors The batch path was chosen from the kernel release alone. On overlayfs, syncfs checks the overlay superblock's writeback errors, not the upper file's, and on FUSE it does not send FSYNC to the daemon, so an import could publish records whose data never became durable. Select syncfs only when the records directory is on ext4, xfs, btrfs or tmpfs, and keep per-file fsync elsewhere. The startup line now reports the path for the lifecycle store, after it exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: assert the imported values before the reopen check The import step control compared the store's snapshot with a reopen, so an import that synced and renamed but committed the old values passed. Check the changed and unchanged values before and after reopen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: check both views after a removal retry present() returned record && snapshot, so a removal that cleared only one view passed the final check. Report both and require both absent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: assert the one-second fail-stop bound The blocked-logger control checked only exit status 1 inside a four-second child timeout, so a longer exit timer still passed. The child now reports when it triggers the failure, and the parent requires exit within the one-second deadline plus one second of scheduler tolerance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: add the lifecycle machine's transition table Every other Part A machine lists its transitions with guard, enforcing code and Part B rows; the lifecycle record I/O machine had only its diagram. Also name DeletePlacement and DeleteVolume beside RemoveNode in the open gap: none of them syncs the directory after removing a record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: scope the manual's lifecycle exit policy to the stores it covers Only the node, placement and volume stores have the fail-stop handler. State that deletion-reservation and workspace-binding write failures return the error without exiting, and that an uncertain binding store needs a restart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: test the import's syncfs selection through the production selector TestSyncfsFilesystemGate checked the filesystem predicate directly and the selector only with an unreadable directory, so a selector that took syncfs after any successful Statfs passed. A test hook now rewrites the filesystem type a successful Statfs reports; an import into a readable directory reported as overlay must sync each file, and its ext4 twin must issue one syncfs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: report import durability for the node and placement store directories Startup probed the lifecycle root, but the node and placement imports select syncfs from their own nodes/ and placements/ directories, so a subdirectory on a separate mount could report one path and use the other. Each store now reports the mode its import selects, startup prints both, and nothing is printed without a lifecycle store. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: list the syncfs selector and per-store mode tests in the ledger Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: pingqiu <pingqiu@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
cccad8d5ce |
seaweed-block: a stale metadata change cannot land on a re-created intent page (filer chunk condition, page re-read as fallback) (#13457)
* seaweed-block: red: a snapshot delete is published over a page whose data was freed Two overlapping runs of one snapshot delete write their intent pages under the same tag. If the first run's stalled page update lands between the second run's read of a page and its adoption (after a cleaning pass deleted and the second run re-staged the page), the second run adopts and publishes an intent whose page data was freed: later snapshot deletes on the volume are refused and its cleaning stops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: a snapshot delete re-reads each intent page after adopting it Publication reads every intent page, adopts it under this run's tag, then publishes. A stalled update from another run of the same delete can land between that read and the adoption and put a deleted page's data reference on the entry. Reading the page again after the adoption, before the transition publishes, refuses that case: once this run's tag is on the entry, no such update passes. No persisted change; a run that hits it stays refused, and a new request id writes new pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: ledger row for the intent page re-read INV-SNAPSHOT-DELETE-ADOPT-002 names the re-read after adoption, its test and the model row it projects (PublishedReadable; the refused run is the residue a new request id clears). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the intent page re-read: typed refusal, twins and a store witness Review: the re-read test now separates the guard from weaker ones. A page that reads but holds other bytes, and a change to only the later of two pages, are refused as well as a freed page; the refusal is a precondition that writes nothing to HEAD, keeps the snapshot, and comes after the adoption; the same schedule with intact bytes publishes. The test is a consequence-level projection; a store-level witness shows the tag-only metadata update writing a deleted object's chunk over a re-created one, which the re-read does not depend on refusing. The ledger row names the witness and marks the model as checked outside the repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the intent page re-read keeps its error's cause The refusal wrapped the re-read's error with %v, so a caller deadline that ended the re-read reached the CLI as a precondition ("page changed during adoption", no_progress) instead of deadline_exceeded, unlike the same deadline on the chain's first read. Wrap both errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the intent page re-read sees only data the filer already freed The filer frees a deleted entry's chunks, and the chunks an update drops, from its deletion queue: polled every 1.123 s, and retried after 5 min when a volume server does not answer. A stale update that puts such a reference on an adopted page therefore reads back intact while the deletion is still queued, and the intent publishes over data that is freed moments later. The intact-bytes twin publishes for that reason. State that bound in INV-SNAPSHOT-DELETE-ADOPT-002 and at the guard instead of "changed or vanished ... refuses the publication". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the delete intent publication row and diagram carry the re-read Part C rule 2 moves a changed guard's Part A row and diagram with it. The publication row now names the re-read after adoption and INV-SNAPSHOT-DELETE-ADOPT-002, and the M9 diagram gains the transition's idle and snap self-loops, which it lacked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: red: a stale adoption or mark lands on a re-created object A metadata change writes the looked-up entry back, chunks included, conditional only on its tags: paused between its lookup and its update, it lands on an object deleted and created again with the same tags in between, puts the deleted object's chunk on it, and a cleaner's stale mark then deletes it. The filer's IF_CHUNKS_EQUAL condition refuses such a write. This commit adds the plumbing and the tests, not the guard itself: - the filer protocol subset gains WriteCondition (IF_CHUNKS_EQUAL) on UpdateEntryRequest; SWFS sends it through UpdateEntryIfChunks, and the fakes evaluate it (or drop it, as an older filer does); - a startup probe sends a mismatched conditional update to the disposable probe HEAD; only a definite refusal turns the guard on for the stores the catalog opens. The startup log and /status/chunk (metadata_guard) name it. The two guard tests fail here: changeMeta does not send the condition yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: metadata changes send the filer's chunk condition With the guard on (the startup probe saw the filer enforce it), an adoption or mark sends IF_CHUNKS_EQUAL with the looked-up entry's chunk fids. A re-created object always has a new chunk, so a stale whole-entry write is refused instead of putting a deleted object's chunk on it; a cleaner's delete expects its own mark and so follows. Without the guard the write is unchanged and the intent page re-read stays the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: ledger rows for the chunk condition and its probe INV-LAYOUT-META-CHUNKS-001 (adoption and mark under IF_CHUNKS_EQUAL) and INV-WS-CHUNK-CONDITION-PROBE-001 (the startup probe decides it, the log and /status/chunk name it); ADOPT-002 names the renamed store test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: the chunk probe without a definite refusal leaves the guard off; fallback wording Review: the existing failure cases stop at the HEAD gate. New cases pass the gate and then fail only the chunk condition probe (unavailable, lost, deadline, filer error, vanished entry, failed HEAD read): the catalog, its stores, the startup log and the usage all stay on page_reread_only. page_reread_only now reads as enforcement not established, not as a filer without the condition; INV-SNAPSHOT-DELETE-ADOPT-002 cites MetaABA r2's delayed-free counterexample, r1 kept as historical scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> |
||
|
|
de239e7404 |
seaweed-block: preserve unchanged master imports and batch durability (#13458)
* seaweed-block: preserve unchanged imports and batch durable publication * seaweed-block: name the rejected entry in a startup import error The batch import returned the bare validation error, so a bad cluster-spec node or placement seed stopped startup without saying which entry. The per-entry RegisterNode/ApplyPlan loop named it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: name the import path in the freshness row and registry guard Startup now replays nodes through ImportNodes, not RegisterNode; list it where the freshness invariant and the registry-writer guard name the writers. Drop a doubled blank line in the operations manual. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: poison a lifecycle store only on a persistence error A node registration whose SeenAt cannot be encoded failed before any file I/O, but RegisterNode latched the marshal error and every later mutation returned ErrLifecycleRecoveryRequired until reopen. Latch only a RecordPersistenceError, as the volume store already did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: keep a node's SeenAt when its declaration changes registrationLocked kept SeenAt only for an unchanged declaration. A restart that changed a node's declared pools or address stamped the current time, so a silent node passed the stale-observation check. A declaration without an observation time now keeps the stored one; a new node still gets the current time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: use the import syncfs only on filesystems that report its errors The batch path was chosen from the kernel release alone. On overlayfs, syncfs checks the overlay superblock's writeback errors, not the upper file's, and on FUSE it does not send FSYNC to the daemon, so an import could publish records whose data never became durable. Select syncfs only when the records directory is on ext4, xfs, btrfs or tmpfs, and keep per-file fsync elsewhere. The startup line now reports the path for the lifecycle store, after it exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: assert the imported values before the reopen check The import step control compared the store's snapshot with a reopen, so an import that synced and renamed but committed the old values passed. Check the changed and unchanged values before and after reopen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: check both views after a removal retry present() returned record && snapshot, so a removal that cleared only one view passed the final check. Report both and require both absent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: assert the one-second fail-stop bound The blocked-logger control checked only exit status 1 inside a four-second child timeout, so a longer exit timer still passed. The child now reports when it triggers the failure, and the parent requires exit within the one-second deadline plus one second of scheduler tolerance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: add the lifecycle machine's transition table Every other Part A machine lists its transitions with guard, enforcing code and Part B rows; the lifecycle record I/O machine had only its diagram. Also name DeletePlacement and DeleteVolume beside RemoveNode in the open gap: none of them syncs the directory after removing a record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: scope the manual's lifecycle exit policy to the stores it covers Only the node, placement and volume stores have the fail-stop handler. State that deletion-reservation and workspace-binding write failures return the error without exiting, and that an uncertain binding store needs a restart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: pingqiu <pingqiu@users.noreply.github.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
0a30cfada1 |
seaweed-block: docs: point the snapshot delete known issue's heading and the manual at the interrupted delete (#13462)
* seaweed-block: docs: exiting or a no_progress answer does not stop a snapshot delete run Review: a write the earlier run already sent to the filer can still land after a no_progress answer, a timeout or the command's exit, so the note asks for the earlier run's final answer before a resume, says waiting for the filer only lowers the risk, and says resumes the volume host starts on its own are outside the operator's control in v1.1.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: v1.1.1 has no reliable workaround for an overlapping snapshot delete Review: waiting for a final answer or for the filer is not a workaround an operator can rely on. The note now says there is none in v1.1.1, that not re-running or resuming an interrupted snapshot delete by hand reduces exposure, and that the fix is planned for v1.1.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the volume host retries only its own delete, for up to 30 seconds Review: the host never picks up a delete the command started; a delete sent to the host is retried by the host itself for up to 30 seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the outstanding filer write, not a live run, is what makes a resume unsafe Review: the trigger described an earlier run that is still alive, so an operator could read a terminated process as ruling it out. The trigger and the advice now name the filer write the earlier run already sent, which can land after a no_progress answer, a timeout or the command's exit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: a paused run has not sent its page update yet Review: the trigger now names both cases of an update that has not landed: the earlier run's process paused before sending it, or the update sent and not yet applied by the filer. Only in the second case need the earlier run not still be running. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: name the failures the volume host retries Review: the host retries its own delete for up to 30 seconds only while an attempt answers layout_busy or head_conflict; any other failure, including no_progress, is returned at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: title the snapshot delete known issue by the interrupted delete The Trigger now says the earlier run need not still be running, so a heading about a delete that is still running suggests an exited command is safe to resume. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: point the manual's snapshot-delete retry advice at the v1.1.1 known issue The typed-error table told operators to keep retrying a snapshot delete with the same request id after no_progress or layout_busy. The v1.1.1 notes now say resuming an interrupted delete is not safe, and a volume that hit the issue answers layout_busy for good. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: give snapshot and snapshot-delete separate no_progress actions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: do not repeat an interrupted snapshot-delete after an unknown outcome Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the host's last snapshot delete retry can start after 30 seconds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: pingqiu <pingqiu@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
68f99dc114 |
seaweed-block: docs: no read of the line confirms a failover stays (#13449)
* seaweed-block: docs: read the line again before relying on a failover Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: a read of the line is a snapshot, not a confirmation The queued rebalance applies when blockmaster's assignment queue reaches it, so a second read can come before it as well. Say that no read confirms the primary stays, and that the guest is started again on the new primary if it moves later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
20854b3a66 |
seaweed-block: docs: a no_progress answer or exiting does not stop a snapshot delete run (#13459)
* seaweed-block: docs: exiting or a no_progress answer does not stop a snapshot delete run Review: a write the earlier run already sent to the filer can still land after a no_progress answer, a timeout or the command's exit, so the note asks for the earlier run's final answer before a resume, says waiting for the filer only lowers the risk, and says resumes the volume host starts on its own are outside the operator's control in v1.1.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: v1.1.1 has no reliable workaround for an overlapping snapshot delete Review: waiting for a final answer or for the filer is not a workaround an operator can rely on. The note now says there is none in v1.1.1, that not re-running or resuming an interrupted snapshot delete by hand reduces exposure, and that the fix is planned for v1.1.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the volume host retries only its own delete, for up to 30 seconds Review: the host never picks up a delete the command started; a delete sent to the host is retried by the host itself for up to 30 seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the outstanding filer write, not a live run, is what makes a resume unsafe Review: the trigger described an earlier run that is still alive, so an operator could read a terminated process as ruling it out. The trigger and the advice now name the filer write the earlier run already sent, which can land after a no_progress answer, a timeout or the command's exit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: a paused run has not sent its page update yet Review: the trigger now names both cases of an update that has not landed: the earlier run's process paused before sending it, or the update sent and not yet applied by the filer. Only in the second case need the earlier run not still be running. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: name the failures the volume host retries Review: the host retries its own delete for up to 30 seconds only while an attempt answers layout_busy or head_conflict; any other failure, including no_progress, is returned at once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the host retry applies only on a version-1 HEAD Review: a version-0 HEAD takes v1.0's name-only delete, which the host does not retry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the issue needs a version-1 HEAD Review: a version-0 or absent HEAD takes v1.0's name-only delete, which stages no intent pages, so it is not affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: 30 seconds is the host's retry threshold, not a bound Review: the host checks its deadline before each wait, so its last attempt can start and run past 30 seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: the host retries for about 30 seconds Review ruling: the plainer, strictly weaker wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ab25506331 |
seaweed-block: docs: known issue: resuming a snapshot delete that is still running (#13454)
* seaweed-block: docs: known issue: resuming a snapshot delete that is still running Two overlapping runs of one snapshot delete, with a cleaning pass between, can record the delete with an intent page whose data was freed; every later snapshot delete on the volume is then refused (queue_full) and the volume's cleaning stops. The v1.1.1 notes give the trigger, the effect, what to do, and that v1.1.1 has no recovery for an affected volume. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: docs: a stuck snapshot delete answers layout_busy, not queue_full Review: with the intent stuck, a later snapshot delete stops at the catalog's pre-check and answers layout_busy, a retryable answer that does not clear on retry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
acc22a4270 |
seaweed-block: docs: known issue: a queued rebalance can undo an operator failover (replicated preview) (#13444)
Docs only. Includes the maintainer's #13446 (the commands to check and redo the primary after a failover). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
e17e30b4aa |
seaweed-block: keep only the runner scenarios this tree uses (#13418)
Removes lab-only runner scenarios and suites from seaweed-block/, keeps the scenarios this tree's CI uses with environment placeholders, and guards every artifact-root use before any cleanup. Includes the maintainer's follow-ups from #13419 and #13423. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
f92efd4437 |
seaweed-block: docs: re-point stale model action citations (#13437)
Docs only: model action citations in the trace table, invariants and time bounds point at the current DeleteRetire actions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
fe2d016c41 |
seaweed-block: docs: cite PlainSealReplay for the seal-replay invariant; drop removed scoped-GC prose (#13429)
Docs only (seaweed-block design invariants and trace). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
63c50b8cfe |
seaweed-block: v1.1.1 notes list five more known issues (#13420)
Matches the published v1.1.1 release page. Docs only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ad5d7338bc |
seaweed-block: neutral names and no lab notes in the public tree (#13417)
Replaces internal identifiers in seaweed-block/ docs, specs and comments with neutral wording. Wording only: no code behaviour, test assertion or spec meaning changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
a5686e7fa7 |
Sync seaweed-block v1.1.1 into seaweed-block/ (#13411)
Brings seaweed-block main (v1.1.1 plus the docs and a test fix after it) into seaweed-block/ as one commit. Only files under seaweed-block/ change, and the subtree equals seaweed-block main exactly. The module's full history stays in the seaweed-block repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
cfd39b0b26 |
docs: v1.1 known limitation, list pages left after a volume delete (#977)
Interim merge note (spec trace workflow startup_failure since 22:45Z): docs-only change to the v1.1 release notes on release-1.1 (known limitation 7). go test (linux) and process-level tests (real binaries) passed on a07cebc3; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body (base release-1.1 at
|
||
|
|
4187ddaffd |
docs: v1.1 known limitations (#973)
Interim merge note (spec trace workflow startup_failure since 22:45Z): docs-only change to the v1.1 release notes on release-1.1. go test (linux) and process-level tests (real binaries) passed on bc83e995; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body (base release-1.1 at
|
||
|
|
a6304c2101 |
feat(geometry): new volumes up to 1 TiB (v1.1) (#757)
Interim merge note (spec trace workflow startup_failure on all branches since 22:45Z): branch updated to current main (69c5c6bd); go test (linux) and process-level tests (real binaries) passed on 69c5c6bd; spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body: both pass (Model line now also cites FormatGate.Report for core/host/master/services.go, mapped since the PR was accepted). Code review ACCEPT on e1ed5073; the 1 TiB loaded first-cut measurement on current main passed on both volume formats. |
||
|
|
53211a2d9d |
ops chunk verify: --timeout is a no-progress window; add --deadline (#966)
Interim merge note (spec trace workflow startup_failure on all branches since 22:45Z): go test (linux) and process-level tests (real binaries) passed on cc3a8a6c (run 46997615891); spec-trace-check.sh and public-text-check.sh run locally with the base branch's scripts against this head and body: both pass. Code review ACCEPT 6161155789; model review ACCEPT 6161515202 (per-call read/trace follow-up recorded there). |
||
|
|
25d640a084 | merge main into recovery progress harness | ||
|
|
9c56ca2e7e |
Merge pull request #962 from seaweedfs/fix/served-topology-issued
master: a clean move releases the static topology home |
||
|
|
2da3e02cb9 |
Merge pull request #960 from seaweedfs/fix/fence-durable-slices
storage: fence slices bypass the page cache and are durable before they count |
||
|
|
8145e4decf |
Merge pull request #959 from seaweedfs/feat/presync-until-short
storage: the pre-barrier sync repeats until its tail is bounded |
||
|
|
89923c1d0b |
Topology-only control: the home slot alone holds the volume before a move
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
63116100fa |
A clean move also releases the old placement slot; lab-shaped test
A cluster-spec import homes a volume both as a placement and as a topology slot, and a move rewrites neither: the placement branch now also yields to a line a move minted on another host. The test moves a volume homed both ways; a control checks the home before any move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
2fe1b06d1b |
Fence: O_DIRECT only on the store's own file; qualify the direct path
The O_DIRECT descriptor is used only when it is the same file as the store's descriptor (os.SameFile); a replaced path is never written. The tests qualify an aligned O_DIRECT write in their directory and fail on Linux when it is refused, and the flush-fault test registers its cleanup first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
6261612611 |
A clean move releases the static topology home
volumesServedBy counted a topology volume's home slot whenever its replica matched the line, also after a move had minted the line on another host. A moved line now counts only on its owner; the home slot counts only for a line no move minted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
f3a8ef4335 |
storage: the cut's extent hold never stalls a guest write
A guest write waiting at the WAL hard mark holds the capture lock's read side while it waits for the flusher, and the cut's hold stopped the flusher until after the barrier took that lock: the write failed at its admission budget. The barrier now only tries for its lock while the hold is on (5 ms); at the hard mark, or when the try fails, it releases the hold first and takes the lock normally, and the cut reports TailOverBound with TailCause. Before the barrier a held extent write also goes through while a writer waits at the hard mark. The hold is now a read/write gate around each extent write and its count: holdExtentWrites returns only after admitted writes have landed, so the last pass's baseline misses none. A cut whose context ended in an unheld pass returns before taking the hold. Tests: two hard-mark reds and a failed-cut release test in bounded children, a gate test, bounded writer joins, a deterministic unreachable bound, and proof that a flusher cycle reached the held pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
f0719b64b4 |
Merge pull request #952 from seaweedfs/fix/finalize-idle-hosts
master: the format finalize blocks only on an old holder and lists the other hosts |
||
|
|
c525b5f40b |
storage: hold flusher extent writes over the last pre-barrier pass
TailBytes now runs from the start of the last pre-barrier pass to the barrier lock, since the pause flushes all of that. A loaded cut right after a fill, with the flusher draining, did not converge: a flusher cycle landing in the last pass left the pause about 4 MiB to flush. The last pass now runs with new flusher extent writes held until the barrier is released (one pass and the pause; the cut needs the WAL only up to H), so the pause flushes the guest's WAL tail alone. The flusher waits before an extent write, holding no store lock, and stops waiting when it is stopped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
eec017474f |
Fence slices bypass the page cache and are durable before they count
Each 1 MiB fence slice writes its aligned bytes O_DIRECT (Linux, where the filesystem allows it) and is fdatasynced before it counts as recovery progress, so a fence on a shared, capped disk no longer waits behind other writers' page writeback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
2b1129eba2 | fix: require recovery exit evidence and keep Close off diagnostic output | ||
|
|
89a764dbdd |
List a held volume's stale report instead of blocking on it
A held volume whose process has been silent past the freshness window is listed by the finalize (stale report); the grant and placement checks still read the kept entry and refuse an old one. The restart test keeps a sibling process at level 1 so the grant cannot borrow its report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
44edaa4f0e |
storage: the pre-barrier sync stops on the tail it leaves, bounded
The pre-barrier sync repeats until the store-file bytes dirtied during its last pass (WAL appends and extent writes) are at most a named bound (1 MiB), at most 6 passes and while the cut is live; past the last pass the cut proceeds and reports the tail above the bound. LastCut reports PreSyncRounds, TailBytes and TailOverBound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
a8ddae011f |
storage: the pre-barrier sync repeats until a round is short
The first loaded cut after a fill paid the fill's write-back in its one pre-barrier sync, and what the guest wrote meanwhile became the pause's own sync work, growing with the fill. The pre-barrier sync now repeats while a round takes longer than 10 ms (above one device flush), at most 6 rounds and while the cut is live: the pause then flushes only about one short round of writes, whatever the fill. Status reports the rounds (LastCut.PreSyncRounds). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
23a20a92aa |
Pin the restart path the finalize leans on
A holder that restarts on an old binary adopts no line issued for its dead process, and the re-issue for its new incarnation is refused at the publication boundary (binary_too_old): the line keeps naming the dead process. The control restarts on a binary that reads the level and gets the line re-issued. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ee6a8471bd | fix: observe C3 recovery progress and graceful stop separately | ||
|
|
5cb92b7593 |
Cut the finalize down: block only on an old holder, list the other hosts
The finalize is refused only while a live report of a process holding a volume reads below level 1. A held volume with no report, a host with no report and an old process holding no volume are listed in the answer (FinalizeFormatResponse.unconfirmed, and unconfirmed.<id> metadata on a refusal) and in --json as listed; they do not block. The durable last level and its marks are dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
fcf6b0ec41 |
Merge main (#955) into the snapshot operations
The holder's maintenance now consumes a published delete intent, so a delete behind an earlier one resumes once its intent is consumed. The model-code trace keeps both sides' new rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
df6ba7f031 |
Merge pull request #955 from seaweedfs/feat/v8-delete-consumer
Resume persisted snapshot delete intents through holder maintenance |