INV-WAL-V3-CAPTURE-CANDIDATES-001 refers to COMPARED-001 instead of
restating the clean-fill exception; the clean-fill tests and fillOnce
are bound to COMPARED-001.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The insert census accepts only the call <receiver>.noteChunkMutation(<lba>)
on the insert's own receiver and first argument, as a plain statement
within the next two; controls for a method value, a condition, a defer,
another store and another LBA.
A pacing refusal on the layout path sends no chunk and fails the cut with
the limiter's cause. The provider's put returns the remote's error as is:
the layout remote keeps the pacing error and its name.
The guide's host-limit paragraph: only sent bytes are paced, and a rerun
sends only the chunks not yet stored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hydrated chunks are clean-filled, so the mark filter dropped the chunks
an own batch re-uploads under this layer's key, and the batch owned
none. The filter now keeps a chunk the current own batch picked.
The replay census keys functions by receiver-free name without
overwrites: two functions of one name on different types made it
flaky. The session-site census follows Put into PutPaced. The row
names the own-batch exception.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The census also requires each replayRecordV3 caller to defer
noteChunkRecovery, itself or in every caller (recoverV3 by Recover).
resumeBaseInstallV3 republishes the install's WAL records, so it now
defers the same note: every chunk's version moves and no clean mark
survives it. Controls: an undeferred note, a caller whose caller does
not defer it, a caller with none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cut that compared a chunk equal to HEAD and then did not publish
records it as a clean mark (version, HEAD ref); the next cut skips a
marked chunk, whatever returned it to the candidates, while both are
unchanged. A rerun after a failed cut compares only what changed.
The upload pacing now runs before the create that sends a chunk's
bytes, not before the put: a chunk already stored is not paced.
Guard: every dirty-map insert notes the chunk mutation, and the extent
writers are pinned. New row INV-WAL-V3-CAPTURE-COMPARED-001.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The record now holds the HEAD ref the chunk was filled from as well as its
version, and holds only while both are unchanged, so a HEAD that no longer
names that ref makes the chunk a candidate whatever replaced it. The
version at the fill's start is read under the end check's lock.
Guard enumeration: a write, a flushed write, single- and multi-block
batches, a replicated entry and a recovery each bump the chunk's version
and make it a candidate again; a BASE install ends every record.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh-from-HEAD volume (a restore target) fills a chunk from HEAD on
read, but its owned-map entry stays UNKNOWN, so every filled chunk was a
cut candidate: the next cut re-read and re-hashed it locally only to find
HEAD's bytes. A target read back in full made its detach's final cut as
long as reading the whole volume, with nothing to upload.
fillOnce records the chunk's version when it filled the chunk wholly from
HEAD with no local block and no mutation during the fill; captureCandidates
does not count UNKNOWN alone for such a chunk while that version holds.
Memory only, reset by a BASE install; the UNKNOWN bits are untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment only: a dependent may have been recorded and released by the
operator before the snapshot was deleted. No code change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. A restore can pass the master's snapshot check, write
its record, and then meet a snapshot deleted in between (refused for good
by target creation); a crash, or a removal that fails, leaves the record.
The replay then stops at the master's own snapshot check: it now removes
the matching not-ready record there, since a recorded dependent keeps
its snapshot, so an absent snapshot proves the target was never recorded
on the source. A removal that fails answers Unavailable (retry), not the
refusal.
Tests through the real catalog: a restore of a restore target's snapshot
is refused with no filer write and no record; a failure after the
dependent's write keeps the record and the replay completes it with the
same target id. Renewal on a not-ready name: admitted deletion untyped,
committed deletion typed DELETED.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CreateVolume of a restore target wrote its lifecycle record, then target
creation refused a snapshot naming another volume's chunks (a snapshot of
a restore target). The not-ready record stayed: the name resolved, the
documented delete found no HEAD, and workspace show advised a retry of a
CreateVolume that is refused for a deleted name.
When target creation refuses for good before any write (a foreign or
absent snapshot; no replay changes either), the master removes the
record in the same command. Any other error keeps it for the replay. The
workspace checks look at deletion before store readiness.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The NVMe initiator renews its deadline (nvmeIODeadline, 60 s) before every
I/O command, so it bounds each command instead of the connection's whole
life: requireBlocks' 65,536 reads no longer race one dial-time deadline.
- reviewBindingHostBeforeStart's context is a hang guard for the whole test
(60 s, was 10 s), so a slow host's setup does not use up the time the
later calls and the successor probe need.
TestNVMeInitiatorDeadlineBoundsEachCommand and
TestWorkspaceRPCSameHostForcedRecoveryOutlivesASlowSetup pass; test-only,
no product change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two tests fail on a slow host while CI passes (a WSL run with its scratch
on a mounted Windows drive). Both fail because a fixed bound in the test,
not the product, runs out:
- TestWorkspaceRPCSameHostForcedRecoveryRecordsLoss: the successor probe and
the later calls run under reviewBindingHostBeforeStart's 10 s context, and
a slow setup uses it up ("signal: killed"). The new
TestWorkspaceRPCSameHostForcedRecoveryOutlivesASlowSetup pauses 11 s
before the probe (both clocks the test reads are fake, so no lease
changes) and fails on main on any host.
- TestCutoverWriteSnapshotKillRestartRestore: the NVMe initiator sets one
deadline at dial (60 s) and requireBlocks then reads all 65,536 blocks on
that connection. The new TestNVMeInitiatorDeadlineBoundsEachCommand shortens
the deadline (now the variable nvmeIODeadline) to 2 s, idles 2.5 s and
reads one block: it fails on main on any host.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: store a truncate through an open handle before answering
SetAttr with a new size and an open handle only marked the handle dirty,
so the size reached the filer at the next flush or release. A mount that
died before then brought the old size and data back, and an NFS export
answered SETATTR, which no COMMIT follows, with a size it had not stored.
Flush the handle once the entry locks are released, as a truncate
without a handle saves the entry. The writeback cache still defers it,
except under an NFS export.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: test that a truncate through an open handle is stored
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: refuse a truncate up past the quota before the file grows
The size is now stored before SetAttr answers, so a growth the quota
cannot take was installed and charged, then refused by the flush,
leaving the grown size on the handle. Check the growth first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: compare a truncate's growth with the quota headroom
The used size, the uncommitted writes and the growth were summed in
int64, so a truncate up to near 2^63 wrapped the sum negative and passed
the check. Take the growth as uint64 and compare it with what is left.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* volume: check the collection name in handlers that build file paths from it
AllocateVolume, VolumeMount, VolumeCopy and the EC rebuild, copy,
delete, mount and to-volume handlers joined the request collection into
volume file paths, so a collection such as "../x" reached files outside
the volume directory. They now apply checkVolumeCollection, as CopyFile
and ReceiveFile already do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* seaweed-volume: check the collection name in handlers that build file paths from it
Mirrors the Go volume server: allocate_volume, volume_mount, volume_copy
and the EC rebuild, copy, delete, mount and to-volume handlers apply
check_volume_collection, as copy_file and receive_file already do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* volume: check the source's collection before VolumeCopy builds paths from it
VolumeCopy names the destination files after the collection the source
reports in ReadVolumeFileStatus, so that value needs the same check as
the request's collection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* seaweed-volume: check the source's collection before volume_copy builds paths from it
Mirrors the Go VolumeCopy: the collection the source reports in
ReadVolumeFileStatus names the destination files, so it gets
check_volume_collection too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* volume: stub the source in the VolumeCopy source collection test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* seaweed-volume: keep check_volume_collection's doc comment as on master
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The master client marks a master current as soon as the stream opens and
applies the first VolumeLocation afterwards, so GetLocations right after
GetMaster can miss volume 1 on a loaded runner.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ops chunk verify does not read the v1.0.0 volume directory layout: on a
healthy volume it reports a missing VOLUME, or (by its full name) false
identity findings. Remove its steps and claims from the guides and the
README, and state the limit in the release note.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The client's wait for an answer was sent + per + cushion, with per computed
before sent was sampled: a pause between the two moved the wait past the
loop's deadline. It is now min(deadline, sent + per + cushion), so it never
reaches past --timeout (INV-CLI-CHUNK-LOOP-003).
Test isolation: when runChunkWithin's bound fails a test, it now joins the
command (bounded) before the earlier cleanups restore the package globals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
INV-CLI-CHUNK-LOOP-001..004, one property per row in B.5,
each citing its tests:
- 001: the same request is repeated only after a retryable or
outcome_unknown answer. An outcome_unknown answer not marked retryable is
now repeated too.
- 002: the loop stops at the first definite answer.
- 003: no request starts once --timeout has passed, and a non-positive
--timeout is refused before any request (snapshot, cut and detach; before,
a zero --timeout was sent as timeoutMs 0, which the server reads as its
own default bound).
- 004: a request that ended early is repeated only after a backoff.
Tests: TestChunkLoopRepeatsAnOutcomeUnknownNotMarkedRetryable and
TestChunkNonPositiveTimeoutIsRefused; a mutant that drops either change
fails its test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
countingRemote.Put updated its counts and seen map with no lock while
the chunk layer's upload workers call Put in parallel; a main run aborted
with "concurrent map writes". The counts are now under a mutex, and the
read of the upload count inside the cut is too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of the request loop:
- One deadline, now + --timeout, bounds the whole loop. Each request's own
bound and the client's wait for its answer end inside it; the progress read
(at most 2 s) and the pause are cut at it. A request is sent only while at
least a minimum request is left, so none starts after --timeout and none
carries a zero or negative bound. The first request is checked the same
way.
- After a detach answers outcome_unknown the holder has stopped guest I/O
until it settles the detach in the background. The progress line says so;
a detach still unknown at --timeout says the volume stays stopped and how
to read the settled answer. Snapshot and cut unknowns are not described as
a guest stop. The detach's --timeout help says a long bound can mean a long
guest stop.
- The progress line reports the chunks the holder staged since the first
request (its counter runs from process start) and carries the answer's
message; the requests and the progress read share one HTTP client.
- The pause's start and cap are package variables, so a test can tell a
doubling pause from a constant one.
Tests: a held progress read and slow answers send no request after
--timeout and return by it; the pause doubles to its cap; a successful
progress read is reported as a change, read for the right volume; the
generated request id is exactly the printed one in every request; a detach's
outcome_unknown settles to sealed, to aborted then sealed, and to fenced
(non-retryable), with and without --plain. The timing tests fail at once,
not at the binary's timeout, when the loop misses its --timeout. Mutants
caught: no dispatch check, the client waiting the old 5 s cushion, an
unbounded progress read, a constant pause, the stopped-I/O line on every
unknown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cut budget's request loop (v1.0.1). With --timeout above the
server's bound on one request (5 minutes), the command sends requests of at
most that bound with the same body (a snapshot keeps its name and request
id) until one answers, a non-retryable refusal ends them, or --timeout has
passed. A commit that landed during a timed-out request is found by the next
one, not repeated, and the holder keeps an unfinished cut's uploads between
requests, so each request sends only what is missing.
Between requests the command prints the request's end, the time left and,
when the holder answers GET /status/durable, its staged and dirty chunk
counts. A request that ends before its bound (the store refused at once) is
followed by a pause doubling to 30 s, so a store that is down is not asked in
a busy loop. A --timeout within the bound sends one request, as before; only
the answer the loop ends on is printed on stdout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cut budget's request loop (v1.0.1): with --timeout above the server's 5-minute
bound on one request, the command must send requests with the same name and
request id until one answers, a non-retryable refusal ends it, or --timeout
passes. These tests fail on main: one request is sent and its timed-out
answer is final. The two controls (a non-retryable refusal; a --timeout
within the bound sends one request) pass as before.
chunkRequestBound names the server's per-request bound so the tests can
shorten it; nothing reads it yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The untested replica wipe needs a --durable-root that holds that volume
only: the data files' names can match another volume's in a shared root.
It removes the data files and the epoch table and keeps the replica floor.
Exit 75's causes are examples, assignment_timeout added. The blocked reads
with kernel defaults are 552 s and 614 s as recorded; the slowest guest
answer during a store outage was measured once and its record not kept.
The cut's ~30 s answer is the chunk upload deadline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removed GC and --grace text replaced by the holder's cleaning; the replica
wipe scoped to that volume's own files; outcome_unknown on a restore
target's delete means I/O stopped until settlement; the recovery point is
the last successful snapshot, not a one-day bound; snapshots above about
150 GiB changed need several requests and the schedule retries by itself;
Kubernetes timings scoped to NVMe/TCP; exit 75's causes; the restore CLI
row; the per-cut metadata depends on the volume name length; connection
age with gRPC jitter; the cluster-spec identity cure needs a restart;
throughput and memory figures qualified; the upgrade wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>