A stuck worker or a Close that never returns is a prompt test failure at
the child's bound, with a control that leaves a worker stuck; the Close
worker is joined on every path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- a page is stamped with the position its content includes, and the WAL
is synced through it before the page is written (the header's G too)
- the write's version bump and its applied position move under the
record's lock, together
- every fill holds its chunk (A or P on the page) until one mark round
makes the blocks durable in the store's bits; a later write keeps it
- an evict writes the page holding the chunk before the bits clear, also
on a retry that finds the chunk absent in memory
- the concurrency tests bound every wait and join their workers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- attach calls upgradeChunkRecord (presence saved first for a fresh attach)
instead of a second upgrade: log-only writes are seeded, a marked store
is rebuilt from its bits, never from engine state
- a page's position is clamped to the last completed WAL sync, and a
clean stop syncs the WAL before its final pages
- the attach refuses if the store closed while the upgrade had released
its barrier
- an evict clears the store's bits only after its absent page is durable;
fill-mark batches and evicts are serialized (markMu)
- a marked store never parses a leftover .chunkpresence
- a final page failure is the result of the layer's and the store's Close
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The HEAD entry's conditional keys are swb.layout.gen and swb.layout.volume,
written by LayoutStore.UpdateHead; the integration tests named in the
workspace design were replaced by the layout ones. The manifest perf test
no longer exists, so its command is removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The draft v1.1 store format runs only in lab builds and in this package's
tests (chunkV11Format). The mutation hook passes the write's store
position, so the chunk record knows the position through which it has
applied every write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sampling r1's epoch and then waiting for that exact epoch failed when a
further round moved it in between. waitRejoinConverged polls until r1 is a
healthy primary at some epoch e >= 2 and r2 and r3 are healthy peers at the
same e, read in one pass, and returns e.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- the scratch-cut exemption holds only while the chunk keeps the version
the scratch cut captured; a stale capture grants nothing
- TestMain has no switch that turns the strict findings off
- the raced-fill test bounds every wait and always releases and joins
its reader
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After its 6 s pause the resumed primary can answer the promotion gate's
probe not ready on a loaded host; the gate then runs one more fencing round
and continues r1 at the next epoch. The test waited for healthy peers at
epoch 2 only and failed (run 46515001535: r2 and r3 healthy at 3). It now
waits for both replicas healthy at r1's current epoch (at least 2), checks
that r1 is still the primary and that no replica was promoted, and reads
blocks A and B back; a further round is logged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>