Repository navigation
fix(catalog,cli): hold the claim on a re-created graph and let --claim cover main - #1594
Open
aaltshuler wants to merge 11 commits into
Open
aaltshuler wants to merge 11 commits into
aaltshuler wants to merge 11 commits into
Conversation
…under an admission A claim on a root created again at its path landed at an epoch at or below what the process still held from the root before it, so the registry kept the old entry and refused every publish after the claim. The claim now replaces the entry its attempt saw before it loaded: its put landed on the rows that load read, so it follows that entry whatever the two epochs are. Binding a coordinator to a cluster admission rebuilt its publisher and dropped the manifest image the open had read, so the first publish read it again. The publisher now carries its image and holders into the bound one.
The reload ran after the claim was durable and its error replaced the claimed epoch with no effect evidence. It now reports the claim as an earlier publication. The handle also reloads whenever the claim installed a fresh head, whether or not the claim landed.
…rce and the system-column upgrade A direct load that creates its branch publishes the branch row on main, and a merge that deletes its source publishes the retired row there, but --claim claimed the destination only. On a cluster graph, whose named branches take no claim, the forking load had no working form once main was claimed. --claim now claims each branch a publication of the command moves. schema upgrade-system-columns publishes on main and accepts it.
ManagedWriterClaim l.get moves from 7 to 2, the cost of WriterClaim: the publisher bound to the admission keeps the manifest image the open read, so the claim's load rereads none of it.
… 18 stamp route The Blob stat parity test read a seeded snapshot on both arms after the boot claim moved the served main one manifest version ahead. It keeps that exact comparison and reads the head again, where only the resolved snapshot may differ. A format 18 source had no stamp-route test.
…_fenced as they are The write-path guide still said an entry on another native branch is dropped and that a claim takes the shared schema permit. The recovery and control-plane guides still named the neutral fence as what reconciliation publishes. The agent skill still said no command claims a branch.
…teway method bound_to_admission builds the publisher a coordinator uses under a cluster admission from the one its open built. It issues no storage request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1593, from its review, under Server state transitions and recovery. A graph removed and declared again by one running server refused every write to
mainuntil the server restarted. The new root starts at epoch 0, and the holder registry kept the entry of the root before it whenever that entry's epoch was at or above the one the new claim published, so the claim answered success and the process held nothing it could publish under.mainhas no native name to tell the two roots apart. Three smaller defects came with the same change. Binding a coordinator to an admission dropped the manifest image its open had read, so a managed claim cost 7 GETs where the same claim without an admission costs 2. A claim that landed returned an error with no effect evidence when the schema reload after it failed. And--claimcould not serve a directloadthat creates its branch, a merge into a named branch that deletes its source, orschema upgrade-system-columns; on a cluster graph, whose named branches take no claim, the forking load had no working form oncemainwas claimed.A claim now replaces the entry its attempt saw before it loaded the branch, whatever the two epochs are: its put landed on the rows that load read, so it follows that entry on one chain and on a root created again. An entry recorded while the claim ran still stands when it is the newer one, which is the guard that keeps a late acknowledgement of an older claim from replacing a newer one. The publisher carries its image and its holders into the publisher bound to an admission. A reload that fails after a landed claim reports the claim as an earlier publication, and the handle reloads whenever the claim installed a fresh head. In the CLI,
--claimclaims each branch a publication of the command moves:mainfor the fork of a load's missing destination, for the retired row of a merged source, and forschema upgrade-system-columns. A cluster graph still takes a claim onmainonly, so a write to a named branch alone refuses the flag as before. The write-path, recovery and control-plane guides and the agent skill described the registry, reconciliation andwriter_fencedas they were before #1593, and now describe them as they are.a_claim_on_a_recreated_root_replaces_what_the_process_held_before_itfails without the registry change, with and without an admission, at an equal and at a higher earlier epoch.binding_an_admission_keeps_the_image_the_open_readholds the image, and the storage-cost golden moves one line,ManagedWriterClaim l.getfrom 7 to 2, which is the cost ofWriterClaim.branch_claim_reports_a_landed_claim_when_its_schema_reload_failsarms the reload seam and reads the evidence. The standalone claim test gains the forking load, the merge with--delete-branchand the system-column upgrade, and a new cluster test runs the forking load against a claimedmain. Two checks the review found weakened or missing are back: the Blob stat parity test reads the branch head again beside the seeded snapshot, where only the resolved snapshot may differ between the arms, and a format-18 source has a stamp-route test.For review: the decision to challenge is the registry rule. It rests on the claim's put being a strict overwrite of the version its load read, so an entry that existed before that load is older than the claim on any one chain; an entry is compared by
(admission, epoch)only when it was recorded while the claim ran. The input that would expose a mistake is two claims of one process on one branch whose loads and acknowledgements interleave. The cluster path of the first defect, a live apply that removes a graph and a later one that declares it again, is covered at the catalog and not end to end. Not changed here, and left for a decision: a command given--claimchecksbranch_claimand publishes the claim before the command's own permission is checked, so a command denied afterwards leaves the claim. That is either a second step to state in the contract, beside the load that forks its branch, or a check to move before the claim. Also unchanged:writer_epochandheldin the detailed branch listing stay required fields, since the wire policy is to upgrade the CLI and the server together. No golden row yet records a served write on a named branch, which pays the same open that the claim row now pins.Contract: keeps E4, E6 and the
branchkind's direct--claim. The cost claim is for the claim a server makes at boot and for writes that open a branch other than the handle's own.