pingqiuandClaude Opus 5.5 1ec0404d9d fix(master): a pending restore record is settled by a replay that finds its snapshot gone; a failed removal is a retry
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>
2026-11-28 10:50:27 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%