- sw-block ops chunk volume-delete: while a sweep makes no progress, stderr
says so every quarter of --timeout (at most every 5 s), with how long
nothing has moved, the object it waits on and the count so far; the bound
and the answer are unchanged.
- process-test harness: each weed server keeps its own exit status per start;
a failed test logs, as its own message, each server as running or exited
with its status and the master's and the volume server's last lines (the
volume server last, within what the CI summary keeps); the delete
helper's kill and deadline failures name the store's state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- TestVolumeDeleteReportsAStalledStoreWhileItWaits (sw-block): a store that
holds every object delete until its deadline; while the sweep waits, stderr
must say how long nothing has moved and the object it waits on. Fails
here: stderr has only the end-of-sweep count.
- TestWeedFailureReportNamesEachServerAndItsTail (blockvolume harness): a
failed test's evidence names each weed server as running or exited with
its status, then the master's and the volume server's last lines, inside
the 20 continuation lines the CI summary keeps. Fails here (seams
weedState and weedFailureReport return nothing); the cluster records each
server's exit status for it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The geometry control now includes 1024 blocks a chunk (a 64 GiB sparse
store): the held heap per chunk is the same as at one block (387 B on
v1.0, 436-439 on v1.1), because the map's wider coverage entry is the
on-disk page format, not the attached heap. The store's cleanup is
registered before the attach, so a failed attach still closes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The layer's HEAD now comes from a remote whose GetHead allocates its own
key strings (as a real remote's decode does), so the keys the layer keeps
are counted; the keys are in the layout's canonical form (114 bytes at
the 1 TiB chunk count). TestSpaceMeasurementControls shows a shallow copy
would be undercounted by its keys, that the per-chunk heap does not
depend on a chunk's block count (1, 8 and 32 blocks a chunk agree), and
that key length moves it about one byte a key byte.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TestSpacePerChunkAt1TiBShape reports the holder's heap per chunk after
attach for 262,144 chunks every one named by HEAD (with CHUNK_SPACE_RED=1
it asserts the 200 B/chunk target, red today). BenchmarkCutBarrierScan
and BenchmarkCopyHead time the barrier's idle candidate scan and the flat
map copy at 1 and 16 TiB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit logged every cut attempt at INFO. The rule is every
transition: an idle no-op (no HEAD write) stays at DEBUG, as before, and
a cut that a publication rides on is marked by its caller
(WithPublishingCut): the provider's snapshot marks its cut, so a snapshot
of an unchanged image (a no-op cut, then the snapshot-unchanged HEAD
write) logs the cut's record at INFO. The operator guide is unchanged
from main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cut with no candidate and nothing published (a restored target's first
cut) logged its "cut phases" record at DEBUG only, so at the default
level the attempt left no event. Every attempt now logs it at INFO; the
operator guide says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A unit journal read whole with no records in the window (or a command
the host does not have) is only unavailable; only the command's own
failure (cut, nonzero exit, truncated) makes the bundle unproven. Two JSON
keys that collide once sanitized are no longer told apart by a suffix,
which could itself be a known credential and cost quadratic probes: that
artifact is withheld as not proven, checked after its redaction.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fake remote and every CASHead-hooking test remote check a commit by
change: HEAD with the change set applied must be exactly the proposal's
chunk map, so a dropped or altered index fails the CAS instead of
publishing a HEAD that lost the chunk (a mutant dropping every index
after the first fails TestV11CutCommitsEveryChangedChunk). A census
requires every type in the package with CASHead or CheckCommit to have
its by-change form (deleting one wrapper's fails it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A failing path (start error, unexpected success, timeout) skipped the
mid-test stop, and the cleanups restore floorFS before the setup's Stop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A declared log file refused before discovery (not a regular file, changed,
over 4 MiB, not text, unreadable), a process whose arguments could not be
read, and a failed or truncated unit command each make the bundle
manifest-only, not only a unit cut by the time budget. A missing file or a
gone process holds nothing to discover and stays only unavailable. In an
unproven bundle every artifact error is replaced by a fixed one, and the
skipped names are printed sanitized. A known credential used as a JSON
object key is redacted too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lost commit's change values and expected version are copied when it
is sent; the settlement's check and CAS must carry those values and that
base. Comparing the map with itself could not see an in-place change (a
mutant that edits the pending set before the re-proposal now fails).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The listener's connection goroutines still read floorFS while they settle
the session; restoring it before they stopped raced their read.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Credential discovery read the declared log files only while the
collection's time budget lasted: a slow run (as under the race detector)
skipped the later files, and an earlier file was written with a
credential only a skipped one named. The declared log files are now read
whole for discovery whatever time is left (each is bounded at 4 MiB, at
most 32), after the declared commands and before the status reads. A
declared source the budget still cuts (a -unit's commands) makes the
bundle hold only its manifest, which says the redaction is not proven
and names the cut sources; the command reports it and exits 3. Each log
file is discovered once, not twice.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the draft v1.1 format a cut's commit check and CAS go to the remote by
change (CheckCommitDelta, CASHeadDelta) with one owned change set built
from the chunks the cut changed; an unresolved commit keeps that set and
the settlement re-proposes it at the same base. Release builds keep the
full commit. The commit-site guard now also requires a by-change check
before a by-change commit, and the test remotes that hook CASHead route
CASHeadDelta through it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The summary kept only each file:line line, so a message whose reason is on
its next lines (a holder's log tail after "its log ends:") lost it. Each
own message now keeps its last 20 continuation lines; a harness header's
dump stays out.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ErrHeadNewerVersion now wraps ErrMalformed: every caller that refuses a
malformed HEAD for good refuses a newer one the same way (Start stays a
final refusal, never a retry loop), and its text says to use a newer
binary. The Start classification table pins it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Head's Go JSON (the status and CLI show output) wrote a nil Ext as null,
which reads back as the bytes null, and the ext check then refused the
HEAD as a v1.0 record carrying ext. Ext is now omitted when empty, so a
HEAD without ext reads back without one; a v1.1 HEAD keeps its ext.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M1: on the v1.1 format the HEAD bytes a cut's COW copy fetches for a
partial chunk are also installed beneath its local writes, and the
absence is resolved as a fill (held until the store's batched mark), so
the cut's Hash meets U and the next cut finds the chunk local. Recover's
run-time Changed takes an absent chunk's coverage from the store's bits,
and the engine bitmap's landing no longer sends Write(all). Release
builds are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A commit by change subtracts only the touched segments its new root no
longer names: a shard whose segment came out unchanged stays in the size.
HEAD's ext must be a JSON object in its canonical bytes, on encode and
decode, so it round-trips byte for byte. The format doc states the
upgrade order (version-aware readers before any v1.1 writer) and that the
fullest-HEAD figure is a sizing check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the v1.1 format a full commit writes the sum of its root and segments
as HEAD's current_bytes and the named snapshot's manifest_bytes. A commit
by change subtracts the base root and the replaced segments and adds the
new ones, with no lookups; an unknown size stays unknown. Snapshot
listings report manifestBytes, null when unknown. The format doc states
the ext contract; a test bounds the fullest HEAD under the inline limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- version first (absent: v1.0, strict as before); every known version is
strict at the top level, later fields live in ext, kept raw and written
back verbatim, so the canonical-bytes check holds
- a HEAD of a newer version is refused as ErrHeadNewerVersion, not
ErrMalformed; a v1.0 HEAD carrying v1.1 fields is malformed
- CurrentBytes (Current's manifest size) and a snapshot's ManifestBytes,
written by the commit that knows the size (which makes HEAD v1.1); a
snapshot's size is written once
- the HEAD write census gains version, current_bytes and ext
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The primary's peer answer alone cannot tell a replica that never caught up
from one that never answered; the failure now carries r2's and r3's logs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>