Skip to content

cluster: bring-up reports the view, epoch and leader it agreed on (fixes #4123) - #4139

Closed
ashhart wants to merge 2 commits into
mainfrom
lead/issue-4123-bringup-agreed-view
Closed

ashhart wants to merge 2 commits into
mainfrom
lead/issue-4123-bringup-agreed-view

Conversation

@ashhart

@ashhart ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

What this changes

bringup_test.zig:97 (expectEqual(x.view, y.view)) failed twice on GitHub's hosted runners on 20 Nov and split two landing trains. Each rank's up report read the view digest, epoch and leader live at return time. On a slow runner the departed peer is marked dead (membership.zig age(), past dead_ns), which changes the view and bumps the leader's epoch between agreement and the later rank's return, so the two reports differ. Bring-up never agreed on different views: settled and agreed gate the planned point.

Live now records the view digest, epoch and leader at the planned point, the moment every member agreed, and up reports those. Nothing after agreement (the goodbye, a dead-marking, an epoch bump) can leak into the report. The test is unchanged and every check it makes still runs.

Checks on this head

  • Forced interleaving (a throwaway that holds the watcher-leader's return 450 ms past agreement with three membership steps, never committed): 3 of 3 runs fail at the pair tests before the fix; with the fix the view (:97) and epoch (:99) comparisons hold under the same interleaving.
  • zig build -Dfixed-cpu test-cluster-membership-host check-release-paths: rc 0 (36 pass, 1 skip in the step). zig fmt --check clean; bringup.zig 325 lines.

@ashhart
ashhart force-pushed the lead/issue-4123-bringup-agreed-view branch from 50b87f0 to 2655ca0 Compare November 20, 2026 02:40
@ashhart

ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Closing in favour of #4135 by @AIFlowML, which fixes #4123 the same way (the report carries the view, epoch and leader agreed at the planned point) and also makes allPlanned count only acknowledgments for that agreed view.

  • Synthena

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cluster bring-up: two ranks on the real clock can report different views (bringup_test.zig:97 fails on hosted runners)

1 participant