mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
d8b8ddf7dbcfe611987a59938e89e7ba89bedbbd
21914
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
d8b8ddf7db |
seaweed-block: README: blockmaster is one instance; the filer only in the checkpointed mode
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
083458fef7 |
seaweed-block: README: block storage for SeaweedFS, in two modes
The headline names both modes; a table compares checkpointed local block (supported) with replicated network block (preview), with one figure per mode in light and dark. A new Architecture section names each process, where it runs and what it talks to, and which processes each mode needs. The Quick Start explains what mini starts and prints and how it maps to a deployment. Agent workspaces stay the first use case. The three figures no longer used are removed. 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> |
||
|
|
49d8243eba | docs: regenerate star history chart | ||
|
|
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> |
||
|
|
b30537483f |
filer: stamp rename stream responses with the move's commit stamp (#13473)
* filer: stamp rename stream responses with the move's commit stamp The responses carried time.Now(), but the client applies them against the versions its earlier writes left at their log stamps. Stamps are drawn as max(now, last+1), so on a coarse clock (Windows) they run ahead of the wall clock, and a rename right after a flush of its source was stamped below that flush. The mount's version fence then kept the source in its cache: a renamed-away file still stat'ed and listed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer: test rename responses stamp above earlier events Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: run the Windows mount on changes to the filer's rename handler Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d4e1ca4bed |
release: cut the COSI driver too, and keep the chart on its newest image (#13407)
* release: cut the COSI driver too, and keep the chart on its newest image The release job points the chart's cosi.image at the newest COSI driver release whose image is pullable (never backwards), so a driver release no longer needs its own chart PR. The downstream job also dispatches the COSI driver's prepare_release.yaml (on its main branch); that image reaches the chart at the next release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * release: bound the COSI release and image lookups A stalled GitHub or GHCR response now fails the lookup and keeps the current cosi.image, instead of holding the release until the job timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * release: the COSI driver pins seaweedfs without -u Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
94e6fcf61c |
ci: integrate the imported block module workflows (#13360)
* ci: port block workflows to the shared repository * ci: preserve policy self-exclusion at the root path * ci: check block documentation relative links * ci: keep the block post-merge-review check on hosted runners The job's own comment records that it ended in 'Set up job' with no log on every self-hosted runner, and the source repository ran it on ubuntu-latest. The port made it follow BLOCK_RUNNER_LABEL, so setting the variable would bring that failure back for every labelled same-repository PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: publish block releases from hosted runners The release job holds contents: write and packages: write and logs in to GHCR, and builds its images with the runner's Docker. Following BLOCK_RUNNER_LABEL put it on the persistent pool that same-repository PR test jobs also use, whose Docker and build cache those jobs can leave state in, and whose Docker setup is still listed as unvalidated. The source repository published from ubuntu-latest; keep that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: refuse a block release without notes before pushing images The notes file was first checked in the last step, after both images (and, for the highest stable tag, :alpha) were already pushed to GHCR, so a tag without docs/releases/vX.Y.Z.md left the images published and no GitHub release. Check it with the tag format, before anything is pushed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: run the block documentation link check from root scripts The Relative documentation links step called .github/scripts/doc-links-check.py and its test inside seaweed-block/, but neither the imported module nor upstream seaweed-block has them, so the unit suite would fail once the step runs. Add the checker and its test under .github/block/scripts/ with the other port scripts and point the step and its contract test there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: use the integrated root documentation link checker * ci(block): bound runner disk use and clean job workspaces * ci(block): pin merge evidence and refuse control changes * ci(block): refuse workspace aliases before cleanup * fix(block-ci): refresh test evidence before reporting readiness * block-ci: judge known bugs with the module helper; list only live reproductions The inline loop called an empty -run match or a skip a fix, and the list still named #188 (closed, test passes) and #189 (test absent), so every nightly run failed. Use known-bugs.sh and its controls, as the module workflow does, and keep only #186: #187's reproduction passes at this revision because values.yaml sets blockmaster.stateHostPath. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: let a release rerun replace the assets of a published tag gh release create fails once the tag's release exists, after both image pushes have already run again. Keep the imported helper's existing-release path: edit the prerelease flag and upload with --clobber. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: list both sides of a move when planning unit packages Without --no-renames a file moved out of core/storage/ shows only its new path, so the planner skipped the package it left. The sibling scope scripts already pass the flag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: give each master push its own Block Test concurrency group A group admits one running and one pending run; a newer push cancels the pending one even with cancel-in-progress off, so a burst of merges left some without a post-merge result. Key pushes on the commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: refuse only control changes the PR itself makes The two-dot diff against current master listed every block workflow master changed after the PR branched, so an older docs-only PR hit workflow_review_required for good. Diff from the merge base; the gate already requires the tested base to be current master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: check host paths in a labelled post-merge-review PR The changed-path list holds module paths and block controls only, so a labelled PR that also changed host files passed on its module part. Add every other changed path with its root name; the allow list refuses it. The spec-trace scope stays module-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: keep the public-text adapter in step with the module checker The root adapter carried the v1.1.0 signatures: it passed /home/<user>/ paths and run metadata, and an empty docs/spec/**/recorded-* artifact, which the module checker refuses. Take the module's pattern and artifact path check, keep module-relative paths, skip the root adapter's own pattern when run from the root, and run the module self-test against the adapter so the two cannot drift. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: match doc links per paragraph, with nested parentheses and long fences A link whose label wraps onto the next line was never checked, a target such as guide(v2).md was cut at its first ')', and a three-backtick line inside a four-backtick fence closed it. Close a fence only with the same character at least as long, keep one level of balanced parentheses in a destination, and match links over each paragraph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: test the root wiring the active workflows use The nested self-tests read the module's inactive test.yml, deploy/ Dockerfiles and chunkstore-scope.sh. Assert the docs-only gates in block-test.yml, that each root image refuses every binary it builds, and that the root classifier selects run for chunkstore, storage and durable edits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: refuse host files in a labelled PR outside the allow list Host paths went through the module allow list, where "*_test.go", "*.md" and "docs/*" also match root files, so a labelled PR changing weed/example_test.go or README.md passed. List host changes separately and fail on any of them; the module list still runs. The port test now runs the step in a scratch repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * block-ci: keep root block CI files clean under the public-text scan The port test fixture spelled out a recorded-artifact path, and the unit group test a pid literal, so the checker flagged both as added lines of any PR that touches them. Build the fixture path from parts, name the pid through a variable, and scan the root block CI files with the checker's own pattern. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(block-ci): normalize artifact paths from both checker entry points * fix(block-ci): refuse ambiguous merge bases in readiness checks * fix(block-ci): mask code spans that wrap lines before matching links Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(block-ci): publish the draft a rerun of block-release finds An interrupted first run can leave the tag with an unpublished draft. The rerun took the existing-release branch, replaced the assets and exited 0 with the release still a draft. Publish after the uploads, keeping it off the repository's Latest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(block-ci): require complete matching code-span delimiters * fix(block-ci): preserve escapes and context when masking code * fix(block-ci): preserve original link destination bytes * fix(block-ci): validate original destination syntax * test(block-ci): cover masked whitespace in reference destinations --------- 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> |
||
|
|
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> |
||
|
|
1fe0429d05 |
docs: add non-root PVC deployment example (#13463)
* docs: add non-root PVC deployment example Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com> * helm: move the non-root example's data and logs off hostPath kubelet does not apply fsGroup to hostPath, and master, volume and filer data and logs default to hostPath, so the example alone left root-owned mounts the uid 1000 process cannot write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com> Co-authored-by: NginxL <8777777+NginxL@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> |
||
|
|
e4321a3e89 |
master: write a recovered TopologyId into the hashicorp raft log on leadership (#13467)
* master: write a recovered TopologyId into the hashicorp raft log on leadership A hashicorp raft leader whose TopologyId came from the max_volume_id mirror never wrote it to the raft log, so followers kept an empty id. The next leader then minted a new one, and the first master crashed with split-brain on its next restart when it read the old id back from its mirror. Sync the id after the barrier, as the goraft path already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * master: test that followers learn a leader's mirrored TopologyId Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * master: call the TopologyId sync directly in its test The leader loop never returns, so running it leaked a goroutine per test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * master: retry the barrier before syncing the TopologyId A failed barrier skipped the sync for the whole leader term, leaving followers without the id the next leader needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * master: test that the next leader keeps a mirrored TopologyId Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
4a4651007a |
seaweed-block: the observation host reads the store clock under its lock (#13455)
* seaweed-block: the observation host reads the store clock under its lock The rebuild loop read the store's clock source without the store lock while SetNowForTest swaps it under that lock, so a test that swaps the clock on a running host raced the loop arming its deadline timer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * seaweed-block: test swapping the clock on a running observation host Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ff9c9ca007 |
filer: keep the metadata log a shutdown could not flush and restore it on start (#13470)
* filer: keep the metadata log a shutdown could not flush and restore it on start When the shutdown flush budget runs out, the events still in the log buffer were dropped, so a peer or subscriber that had not read them yet never got them. Keep the unflushed records in the filer store instead, in parts small enough for stores that cap value size, and put them back into the log buffer with their original timestamps when the store is set, before the filer serves. The buffer then flushes them as usual. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer: keep the unflushed metadata log per address on a shared store Filers sharing one store would overwrite and replay each other's kept log under one key. Once a peer has been seen on this filer's store, key the kept log by the filer's address; a store of its own keeps the address-free key, so a filer restarting under a new address (a new pod IP) still finds what it left. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer: drop the restored metadata log copy only once a flush covers it The kept copy was deleted as soon as its records were back in the log buffer, so a crash before the next flush lost them again. Keep it until a flush covers the last restored entry, and let the next shutdown's kept log replace it, since that shutdown's flushes and kept tail then hold every restored record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer: do not count the subscription to itself as a peer on the store Every filer follows its own log, and that subscription always reports the filer's own store, so every store looked shared and the kept log was keyed by address even on an embedded store, where a new pod IP then missed it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
6e91dc97b8 |
worker: reject a task at capacity without blocking the manager loop (#13453)
* worker: reject a task at capacity without blocking the manager loop * worker: gofmt the capacity test and trim its comment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * worker: report a task rejected at capacity back to the admin The admin marks a task assigned before sending it, has no assignment timeout, and only reclaims tasks from workers whose heartbeats stop. A worker that rejects a task at capacity keeps heartbeating, so the task stayed assigned to it and blocked further work on its volume. Report the rejection as a failure so the admin reschedules it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
2637ff09c5 |
mount: answer ESTALE for an inode whose name the filer no longer has (#13447)
* mount: answer ESTALE for an inode whose name the filer no longer has
A job that writes a status file through a tmp name retried a failed
round by opening the tmp name again. The kernel still resolved the name
to the failed round's inode, and the mount still mapped it, but the filer
had no such file: the open failed with ENOENT although it asked for
O_CREAT, and the job exited.
lookupEntry already logged such a tracked name ("filer ErrNotFound for
tracked path"). It now drops the name from the inode table when no open
handle and no pending flush owns the inode, and requests for the inode by
node id answer ESTALE (maybeReadEntry, AcquireHandle), as
pathlessInodeStatus already does for an inode without a name. The kernel
looks the name up again and, for an open with O_CREAT, creates the file,
which gets an inode of its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: drop a vanished name only while it maps to the inode looked up
lookupEntry read the name's inode after the filer answered. A rename
that gave the name to another inode while the request was in flight, a
directory say, had that inode's name dropped on the strength of an answer
about the name as it was. The inode is now taken before the request, and
the name is dropped only while it still maps to that one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: keep the vanished name mapped; ESTALE alone has the kernel look again
Dropping the name raced with an open of the same inode: a handle
published between the check for one and the removal, or just after it,
had no name left, so a peer's rename of that name no longer reached it
and its flush went to the old name. pathlessInodeStatus answers ESTALE
for any inode the kernel still holds, so maybeReadEntry and AcquireHandle
get the kernel to look the name up again without the table losing it.
A file created at the name meanwhile reuses the inode number, as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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> |
||
|
|
16a6a70a08 |
mount: keep delayed events about an earlier file off the next file at its name (#13445)
* mount: keep delayed events about an earlier file off the next file at its name A writer that publishes a status file by writing NNNN.json.tmp-PID, fsyncing it and renaming it over NNNN.json recreates the tmp name every few seconds. Without -writebackCache a mount applies its own events from the metadata subscription after the local apply (the events of a rename stream carry the response time, not the log position, so the dedup ring does not match them), and their invalidations reach whatever file sits at the path by then. With about 200 such writers in one directory, two of these events failed a round of the next file: - the rename of round k moved round k+1's tmp file to NNNN.json. Its handle published under that name and was refused (EIO); the retry wrote into NNNN.json, and the rename of the tmp name failed with ENOENT. - the create of round k became the entry and base of round k+1's file, and every flush of the round was refused (EIO). Both hit the new file in the window in which Create had put its handle in the map but not yet marked it an unpublished create: it did that afterwards, holding no lock, so the event found a clean handle with a base and took it for a published file. On master the second event, which carries the inode number the creating mount stored, makes the handle give the name up instead (replacedByAnotherFile) and marks it deleted: its writes are never published, and close returns success. - AcquireCreatedFileHandle puts a new handle in the state the create leaves it in before the handle is in the map. An existing handle, whose inode number outlived an earlier file, is installed under its lock. - An invalidation carries which file its event is about: the inode number the file's creator stored and its creation time (hard links excluded). An open handle ignores a rename of another file, and any other event about an earlier one (another number, created before the file held). A later file at the name still reaches the handle. - MovePath takes the inode number a rename event reports. A source that maps to another inode, while the table knows the renamed file by that number, holds another file and stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: judge another file by its creation time only for this mount's own events A peer's file can take the name with an older creation time: renamed in from another name, or created on a host whose clock runs behind. Dropping its event left the name on the replaced file's inode. A peer's rename can also name a file by a stored inode number another file here holds, when two mounts made the same path within one second, and was refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: a delete of another file at the name leaves the open handle alone Like a rename, a delete names the file it removed. A peer's delayed delete of an earlier file at the name, logged by a filer other than the one behind the handle's version, marked the held file deleted and dropped its writes. 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> |
||
|
|
120d786818 |
mount: update a directory's times once, without retries (#13443)
* mount: update a directory's times once, without retries touchDirMtimeCtime sent its UpdateEntry through saveEntry's retries, 1, 2 and 4 s apart. Every create, link, rename and removal in the directory waits for that update and ignores how it went. In a directory many writers share, the update of its entry conflicts in the filer store with theirs (TiKV reports "write conflict"), and the call waited out the backoffs: in one directory about 200 jobs shared, three mounts logged 3646 such retries in two hours, each holding a create or a rename for up to about 7 s. saveEntry takes a bestEffort flag: such an update is tried once and its failure logged at V(1). touchDirMtimeCtime sets it; setattr and the xattr calls keep their retries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: shorten the directory times comments 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> |
||
|
|
373eb29e59 |
s3tables: table policy, maintenance and tag operations refuse a view (#13439)
* s3tables: table policy and maintenance reads refuse views and unfinished records readTableMetadataAttr only checked that the table-metadata attribute was present, so the table policy and maintenance operations accepted a view or a record a create or rename had not finished writing. Route it through tableMetadata, the check GetTable and the other table operations use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3tables: tagging a table ARN refuses a view or unfinished record TagResource, ListTagsForResource and UntagResource read the table-metadata attribute directly for a table ARN, so a view or a record still being created or renamed under that name took and answered tags as a table. Read a table target through readTableMetadataAttr. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3tables: table record writes refuse a view requireTableCreatedAt compared only the creation time, so a view holding the name at write time was not rejected on its own. Refuse it, so table policy, tag and maintenance writes never land on a view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3tables: test table operations against a view and an unfinished record Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ca5c659d9b |
s3api: answer a malformed SSE-KMS key ID with KMS.NotFoundException (#13433)
* s3api: answer a malformed SSE-KMS key ID with KMS.NotFoundException PutObject and UploadPart with an SSE-KMS key ID that has spaces or control characters returned 500 InternalError, which clients retry. CopyObject already answers the same ID with KMS.NotFoundException, the error a KMS gives for a key ID it can't parse. PUT and UploadPart now do too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3api: refuse a malformed SSE-KMS key ID at CreateMultipartUpload AWS answers a key ID it can't use at CreateMultipartUpload. A malformed one was accepted there, so every UploadPart of the upload failed instead. ValidateRequestEncryption now answers it with KMS.NotFoundException, which also covers PutObject before a bucket auto-create. 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> |
||
|
|
90aae21e6b |
kms/local: read key_material from ${ENV} references (#13434)
A local KMS key's key_material can now be written as ${NAME}, so the key
can come from a Kubernetes Secret, or any secret store that hands it to the
process as an environment variable, instead of sitting in the config file.
This works in the S3 JSON config and in filer.toml.
A reference to a variable that is unset or empty, or one that isn't written
as ${NAME}, fails the load with an error that leaves the reference and the
material out. The expansion is the one static S3 credentials already use,
moved to weed/util so both share it.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
||
|
|
adb07ee3ce |
s3api: answer GET with the KMS error when the KMS won't decrypt (#13432)
* s3api: answer GET with the KMS error when the KMS won't decrypt A GET of an SSE-KMS object whose key the KMS no longer holds, or refuses to use, returned 500 InternalError, which clients retry. PUT and CopyObject already answer the same KMS errors with their S3 codes, like KMS.NotFoundException. GET now does too, on the full, per-chunk key, range and directory content paths. The per-chunk key path wrapped the decrypt error with %v, which dropped the KMS error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * kms: report a provider outage as an internal failure GET now answers a KMS error with its S3 code, so a provider outage that the converters tagged as a key error turned a retryable read into a 400 that blames the key. OpenBao and Azure 5xx answers and GCP Unavailable or DeadlineExceeded matched the "not found" or "unavailable" substrings, and AWS KeyUnavailableException is retryable per the KMS API. All of these now map to KMSInternalException, which S3 answers as 500. 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> |
||
|
|
04a93bd7dd |
s3api: support UploadPartCopy from SSE-KMS sources (#13431)
* s3api: support UploadPartCopy from SSE-KMS sources UploadPartCopy from an SSE-KMS source returned 501, so `aws s3 cp`, `mv` and `sync` failed for SSE-KMS objects over the multipart threshold. The re-encrypting copy path now decrypts the source the way GET does: chunks with their own SSE-KMS metadata decrypt with it, and a source without any uses the entry-level key. A ranged copy starts at the chunk holding the range, so copying the tail of a large object doesn't fetch and decrypt everything before it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3api: start an SSE-S3 part copy at the chunk holding the range A ranged UploadPartCopy from a per-chunk SSE-S3 source fetched and decrypted every chunk before the range and discarded it, so copying a large SSE-S3 object part by part read the source quadratically. Start at the chunk holding the range start, as the SSE-KMS path does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3api: answer UploadPartCopy with the KMS error when the source won't decrypt A part copy from an SSE-KMS source whose key the KMS no longer holds, has disabled or refuses answered 500 InternalError, whether the refusal came while opening the source or mid-stream. Answer it with the KMS error, as PUT and CopyObject do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3api: refuse an SSE-KMS part copy over chunks of another SSE type A source mixing SSE-KMS chunks with SSE-S3 or SSE-C ones would stream the foreign chunks through as plaintext, copying their ciphertext into the destination part. Refuse the copy before fetching anything. 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> |
||
|
|
6c0859349b |
s3api, iam: match policy variable values literally (#13413)
* wildcard: match expanded variable text literally Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3api: match policy variable values literally in resource, action and principal patterns Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3api: match policy variable values literally in Like conditions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * iam: match policy variable values literally in role policies Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ba4370183a |
s3api: keep the derived aws:s3:arn in a CopyObject SSE-KMS context (#13451)
* s3api: keep the derived aws:s3:arn in a CopyObject SSE-KMS context ParseSSEKMSCopyHeaders took the destination context header verbatim, so a copy could carry no aws:s3:arn or name another bucket's ARN, and a KMS key policy conditioned on aws:s3:arn could be met that way. Without the header, the default context was built from the filer path, which made the ARN arn:aws:s3:::b//buckets/b/key. Build the destination context the way PutObject does: the derived ARN of the destination object plus the client's extra keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3api: reject a CopyObject SSE-KMS context the KMS would refuse The copy validation only checked that the context header was non-empty, so a malformed context failed later, after the copy had started, with InternalError. Apply the same checks PutObject applies and answer InvalidRequest up front. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3api: answer InvalidRequest when the destination KMS context is refused The derived aws:s3:arn of a destination key with a control character fails the KMS context checks, and the copy answered InternalError. Return it as a CopyValidationError and let the copy error mapping honor that type, so the client gets InvalidRequest as PutObject does. 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> |
||
|
|
cf3eda7e57 |
perf(s3vectors): read the bucket once per authorization (#13427)
s3vectors: read the bucket once per authorization Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
68d56d8ff8 |
mini: admit volume servers started against the embedded master (#13416)
* mini: admit volume servers started against the embedded master A single-master weed mini pinned its embedded volume server as the only admitted reporter, so the master refused every extra weed volume pointed at it. Use the expected-reporter release a single-master weed server already uses: the embedded server's first clean inventory still collapses the post-mint allocation hold, and other volume servers are admitted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mini: test that a single-master mini does not pin its volume server Move the reporter choice into setMiniExpectedReporter so a command-level test can check it: the embedded volume server is the expected reporter in single-master mode, never the only admitted one, and a multi-master rerun clears it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
39f568f614 |
wdclient: use a master only after it answers as the leader (#13415)
* wdclient: use a master only after it answers as the leader Since the announce gate was added, every client marked a master as current as soon as its KeepConnected stream opened, before the master answered. When that master is a follower, its answer only names the leader, but calls made in the meantime go to the follower, and leader-only ones (lock, volume.list, collection.*, ...) fail with "raft.Server: Not current leader". A weed shell fed a script runs its first command right in that window. Keep the early hand-out for clients behind an announce gate (a starting filer), and let other clients wait for the first answer as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * wdclient: start the follower check only after it got the registration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * wdclient: hand out a master early only while the announce gate is closed A filer that already announced and reconnects after a failover kept the early hand-out, so calls waiting in GetMaster went to a follower that had not answered yet and failed with "Not current leader". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * wdclient: stop handing out a master once it redirects to the leader A filer that reached a follower behind its announce gate kept that follower as the current master after the redirect, until the leader answered, so leader-only calls in that window failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * wdclient: keep the redirecting master when canceled before the leader answers Clearing the current master on a redirect left it empty if the client was canceled before the hinted leader answered, so a later GetMaster without a deadline blocked forever. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
4a58968439 |
Cut per-request CPU on filer gRPC tokens and S3 header scrubbing (#13414)
* security: reuse the filer admin token signed in the same second An admin token's only claim is its expiry, which jwt truncates to the second, so every token signed with one key in one second is the same. Each filer gRPC call from a client with a filer signing key signed a new one: about 4us and 40 allocations per call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * security: add a filer token without copying the outgoing metadata WithFilerToken copied the outgoing metadata twice on every filer gRPC call to check for an authorization the caller set and to add its own. Look the key up in place and append the token instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3api: canonicalize the scrubbed internal header names once scrubInternalHeaders runs on every request, and Header.Del canonicalized each of its nine names again; five are not in canonical form, so each request allocated their canonical forms anew. Delete the precomputed canonical keys instead: 775ns and 5 allocations down to 120ns and none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * security: benchmark the token path with a fixed key, test the reuse itself Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * security: keep GenJwtForFilerAdmin's doc comment on the function Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
f9febc7ee5 |
filer: a store's listing expires an entry as the filer does (#13399)
* filer: a store's listing expires an entry as the filer does The tikv and redis stores remove the entries a listing finds expired, and judged that by Crtime + TtlSec. For an S3 object the filer counts from mtime instead, and an overwrite keeps Crtime while it moves mtime. So a listing deleted an S3 object that was overwritten within its TTL: a GET still returned it, and after one ListObjects it was gone. The same check dropped a directory carrying a TTL from an older build, stranding what it holds, which the filer's lookups refuse to do. These stores, and the rocksdb compaction filter, now use Entry.ExpiresAt. * filer: trim the store expiry comments Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: MapleWhiteZZZ <18653045+MapleWhiteZZZ@users.noreply.github.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
0ce344d559 |
redis3: remove names left by expired entries, fix skip-list split and listing (#13408)
* redis3: a listing removes the names of expired entries from the directory A listing skipped the name of an entry whose value redis expired and left it in the directory's list for good, so the list key also outlived the directory's last entry. For an entry past its TTL it ran ZREM on the list, which in this store is a string key, so that name stayed as well. Both now leave the directory's list once the walk ends, under the list's lock and only when the master holds no value for the name, so an insert that wrote its value first keeps its name. An entry past its TTL is deleted only if it still holds the bytes the listing judged expired. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: a lookup removes what a redis-expired entry left behind The filer asks a store that implements ExpiredLeftoverStore to clean up after a lookup that missed under a TTL rule, as the redis and redis2 stores do. redis3 now removes the name from the directory's list too, checking the list first so a miss on a name never written costs only the reads of the list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: key the upper half of a split node by its smallest name When a full node splits and the new name goes to the lower half, the upper half was keyed by that new name, which it does not hold. Deleting the name then matched the upper node by key and removed nothing, so the name stayed listed, and listings from a start name could come back out of order. Only a directory list of more than one node splits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: list from a start name inside an earlier node A listing from a start name that falls inside a node, rather than on a node's key, began at the next node and skipped the rest of the node that holds the start name. A paged directory listing resumes from the last name it returned, so every page after the first lost names once the directory's list had more than one node. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: check a lookup's name against the one node that would hold it The check that a missed name is still listed walked the list from that name, which fetched the rest of its node, up to a million names, to look at the first. It now asks that node for the one name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: stop a list change on a failed read of a node's smallest name NodeMin returned "" for a failed read as for an empty node. Deleting a node's key name then dropped the whole node with the names it still held, and a split keyed a node by the empty name. It now returns the error, and both stop on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: an update that finds its value expired lists the name again UpdateEntry only wrote the value. When redis expired the value between the caller's read and the update, a lookup or listing could take the name out of the directory in between, and the update left a live entry that no listing shows. The value is now written by a script that also reports whether one was stored, and an update that found none adds the name back, under the list's lock as an insert does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: read a split node's new smallest name before changing the list A split that failed this read had already unlinked the node and saved the new lower node, and returned before the list header was saved, so the names of the node were no longer reachable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: return a failed read of a node's membership A failed read passed for a missing name: a lookup's leftover check reported no leftover, and a delete returned success with the name still listed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: take back an update's value when listing its name fails An update that found its value expired wrote it again and then listed the name. If listing the name failed, the value stayed, so a retry found it stored and returned without listing the name. The value is now deleted again if it is still the one written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: stop a list change on a failed count of a node's names NodeSize and NodeInnerPosition read 0 from a failed ZLEXCOUNT. A delete then took the node for emptied and dropped it with the names it still held, and a split added the name in a node of its own ahead of the names before it, so listings came back out of order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: read the directory list from the masters when changing it With useReadOnly or routeByLatency, redis_cluster3 sent the reads of a list change to replicas. A lagging replica could miss a node's other names, and the delete that read it dropped the node with them; a listing or a lookup that removes an expired name now runs that delete too. List changes and the EXISTS checks before them go through a second cluster client that reads from the masters, created only when the store reads from replicas. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: list an expired update's name before writing its value back An update that wrote back an expired value and then failed to list the name deleted the value again when it still held the update's bytes. A concurrent write of the same bytes was deleted with it, and a failed delete or a concurrent update of other bytes left the value without its name for a retry that no longer looked. The update now writes with SET XX. When the value is missing, it lists the name and then writes the value under the list's lock, which the removal of an expired name also takes. A failure leaves the value missing, so the retry lists the name again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: list an updated name again when the list lock's lease ran out An update that finds its value missing lists the name and writes the value under the list lock. If the write outlasts the lock's lease, another filer's cleanup can take the lock, see no value and remove the name before the value lands, leaving a value no listing shows. Unlock now reports a lost lease, and the name is then listed again under a new lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: list a cleaned-up name again when the list lock's lease ran out A listing or lookup removes a name after finding its value missing under the list lock. If the removal outlasts the lock's lease, an update can list the name and write its value in between, and the removal then takes out the name of a live value. Unlock now reports a lost lease, and the name is then listed again; if its value is still missing, the next listing removes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: list the name again when a change fails after the lease ran out A cleanup that lost its lease could remove the name from its node and then fail on the next read. The failed change skipped the lease check, so the name of a value written in between stayed removed. The lease is now checked whenever a write or check ran under the lock, and the change's own error is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: retry listing a name again after the lease ran out Listing the name again after a lost lease is the only thing that lists a value another filer wrote in between. A transient failure of that one attempt left the value unlisted, so it is now retried. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * redis3: list an inserted name again when the list lock's lease ran out An insert's list change made after the lease ran out could be overwritten by another filer's change based on an earlier read of the list, dropping the name while its value stays stored. Every insertChild now ends with the lease check, so the name is listed again, as an update's already was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- 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> |
||
|
|
58b8e0ba89 | docs: regenerate star history chart | ||
|
|
2bbb50fe7c |
codespell: accept 'lits' (Go AST literals in seaweed-block tests) (#13412)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |