Repository navigation
0.10.14: resume an interrupted local-only update re-plan by the control claim (#2166 follow-up) - #2171
Merged
Conversation
… not the onboarding's role (red) REL14's delta review of #2166: the re-plan after an update (and so its mark) runs on the derived control leader, whichever Mac drove the onboarding, but the resume checked the onboarding role. A Mac that leads by its claim with the member role resumes; a Mac whose claim the other Mac superseded resumes nothing.
…claim The resume after an update's restart checked the onboarding role (leadership.role == leader); the re-plan runs on the derived control leader (checkForUpdate is gated on a confirmed claim), so on a pair whose control moved to the Mac that joined, its mark was never resumed (0.10.13's behaviour). It now asks the recorded control claim (followsPeer, the roles only without a claim), and resumes nothing without a readable pairing. Docs follow.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- With the pairing unreadable (a locked Keychain at login) the resume asks the onboarding's role, as before, instead of dropping the resume. - The 'joined' test arm names the other Mac as leader in its onboarding record too, so only the claim can resume it; comment says what the arms model. inference.md line wrapped.
…W1 R2) W1 on DevNet pair-2: from 0.10.13 builds a hand update of a local-only pair deferred and then came back by itself (the leader's re-plan restarted the parts on the new release: .195 -> .196, and with the switch off .197 -> .198, 1.5-2.5 min). The 'stays down until the remedy' case was an earlier supervisor's (K1). Docs and changelog no longer say the update to 0.10.14 needs the remedy; they say it may, and what the switch restores.
Collaborator
Author
|
Release owner (0.10.14, REL14): merging into |
This branch was successfully deployed
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 #2166 (0.10.14 row 9, PAIRS-14), from REL14's delta review (
release-0.10.14/evidence/pairs14/review-2166-delta.md): resume an interrupted update re-plan by the control claim, not the onboarding's role. Intodev.Problem
ClusterService.resumeInterruptedUpdateReplan(#2166) put the pair's start back only whenleadership.role == "leader". Control is derived (ClusterControlLeadership: "never from a host role"), and the re-plan after an update (checkForUpdate, gated on a confirmed claim) runs on the control leader, whichever Mac drove the onboarding. On a pair whose control moved to the Mac that joined, its interrupted re-plan was never resumed: 0.10.13's behaviour (the pair left "Stopped").Change
The resume asks the recorded control claim (
ClusterService.leadsByControl→followsPeer(record:pairing:), which falls back to the roles only without a claim); with the pairing unreadable (a locked Keychain) it asks the onboarding's role, as before. Every other condition is unchanged (fresh mark, start still cleared, no counted stop, switch on). Docs:inference.md,cluster-always-on.md.Also (docs, from W1's R2 on
.197→.198): with the switch off, i.e. 0.10.13's path, the hand-updated local-only pair still came back by itself (the leader's re-plan restarted the parts; 1.5–2.5 min; also.195→.196). The docs and the changelog no longer say the update to 0.10.14 needs the remedy: it goes the earlier release's way, usually back by itself, else the remedy (55d6540b3c).Before / After
flowchart LR subgraph Before M1["service starts, mark found"] --> R1{"leadership.role == leader?"} R1 -- "member (control moved to it)" --> N1["start stays cleared: pair Stopped"] R1 -- "leader" --> Y1["start put back"] end subgraph After M2["service starts, mark found"] --> R2{"control claim names this Mac? (followsPeer)"} R2 -- "yes, any role" --> Y2["start put back"] R2 -- "claim superseded by the other Mac" --> N2["nothing resumed (mark dropped)"] endTests (red first)
45ef98515b, the test only, ondev: both new arms fail there.ClusterServiceRestartingStopTests.aServiceEndedInItsUpdateReplanPutsThePairsStartBackWhenItRunsAgain: new arms "control moved to the other Mac" (not resumed) and "control led by the Mac that joined" (resumed).Validation: CI. Mac A's build gate is shared, so nothing was built locally. Independent fresh review + refactor assessment (
release-0.10.14/evidence/pairs14/review-2171.log): APPROVE WITH NITS, refactor: no change warranted; nits addressed in the last commit (locked-Keychain fallback, the 'joined' arm names the other Mac as leader in its onboarding record so only the claim can resume it). W1's R1/R2 on DevNet pair-2 (w1-brief-reform.md) run on.196/.197, which have #2166 without this follow-up; this only affects a pair whose control moved to the Mac that joined.