DESIGN r17.3.1 section 8.7:
- BaseInstallPreparer.BeginBaseInstall(baseLSN, installID) returns an
InstallHandle (WriteBase, ApplyInstallEntry, MarkBaseComplete). The v3
WALStore runs the row 9a begin; a v2 WALStore and stores without the
seam get the legacy handle, which keeps their exact pre-seam behaviour
(WriteExtentDirect, ApplyEntry, AdvanceFrontier(baseLSN)) and stages a
BaseStager store lazily before the first BASE block or completion.
parallelwal's staging step is renamed BaseStager.BeginBaseStage; the
legacy replica caller uses it unchanged (row 10 rewrites that caller).
- The dual-lane Receiver begins the install at SessionStart, inside the
counted section, at FromLSN under a fresh random ID; RebuildSession
writes, applies and completes only through the handle, and
MarkBaseComplete's error now fails the session with no ack.
- Tagged (swblock_format_v3_test) controls through the real receiver on
a dark v3 store: the positive rebuild, the held-write drain, the parked
frame for both lanes, and a superseded BaseDone failing without an ack.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- smartwal: decode never panics, a rejected slot is the zero record, an
accepted slot round-trips; slots with non-zero reserved bytes (covered by
the CRC but ignored) are pinned as a known gap.
- parallelwal: an accepted record re-encodes to exactly its bytes; every
encoded record decodes back; a CRC-valid header slot built from fuzz bytes
is rejected as the zero header or survives an encode/decode round trip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>