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>
A caller can give up before the front's handler is scheduled to notice,
leaving the left channel open; the check reads the held request's context
first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The filer front records when the held call leaves and why (the test's
release, or its caller giving up); the test checks the hold is still
waiting right after the store goes down, else the run is inconclusive.
E1_TEST_DELAY_KILL delays the kill past the upload's timeout as the
negative control. The post-restart HEAD reads carry the wait's absolute
deadline, and the side-file census fails on any error but a file removed
while it is walked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eventBudget is asked again for each wait and is at most the time left
before the test's deadline less a reserve, with no fixed minimum, so no
wait outlives the deadline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A store now lives in its volume's own directory (<name>-<id8>) and its side
file is created next to it; the test globbed only the host root, so it
measured 0 and its no-leftover checks looked nowhere. It walks the root.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SeaweedFS names a full store only to the assign that tries to grow a
volume, so one object's retries and a cut's upload batch keep that answer
over plainer failures. A real-weed integration test fills a tiny store and
checks every round of concurrent uploads answers remote_full. The ledger
gains the remote_full and LastCutFailure rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>