Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(enterprise): mark nodes from unhealthy coordinators as lost#13123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

coadler
Copy link
Contributor

@coadlercoadler commentedMay 1, 2024
edited
Loading

Fixes#13041

Instead of removing the mappings of unhealthy coordinators entirely,
mark them as lost. This prevents peers from disappearing from
other peers if a coordinator misses a heartbeat.

@coadlerGraphite App
Copy link
ContributorAuthor

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@coadler and the rest of your teammates onGraphiteGraphite

Instead of removing the mappings of unhealthy coordinators entirely,mark them as lost instead. This prevents peers from disappearing fromother peers if a coordinator misses a heartbeat.
@coadlercoadlerforce-pushed thecolin/fix_enterprise_mark_nodes_from_unhealthy_coordinators_as_lost branch from58801cf toa8ac205CompareMay 1, 2024 23:07
@coadlercoadler requested a review fromspikecurtisMay 1, 2024 23:07
@coadlercoadler marked this pull request as ready for reviewMay 1, 2024 23:14
Copy link
Contributor

@spikecurtisspikecurtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This LGTM, but I'm relying on reading code to convince myself that it solves the high level use case of sending LOST updates to peers when a coordinator fails heartbeats.

In addition to the unit test on the heartbeats subcomponent, I'd like to see a test in a similar vein toTestPGCoordinatorSingle_MissedHeartbeats where we simulate a second coordinator entirely by DB calls, make it miss its heartbeats, and then verify that the first coordinator sends out a LOST update.

@coadlercoadler requested a review fromspikecurtisMay 2, 2024 22:44
Copy link
Contributor

@spikecurtisspikecurtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM! Minor suggestion inline, but I don't need to review again

defer coordinator.Close()

agent := test.NewPeer(ctx, t, coordinator, "agent")
defer agent.Close(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think the agent on the real coordinator is superfluous to this test. Just need to test the agent update on the fake coordinator, then have it miss heartbeats.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Ah, good point.

@coadlercoadlerenabled auto-merge (squash)May 3, 2024 19:07
@coadlercoadler merged commit205c43d intomainMay 3, 2024
@coadlercoadler deleted the colin/fix_enterprise_mark_nodes_from_unhealthy_coordinators_as_lost branchMay 3, 2024 19:07
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 3, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@spikecurtisspikecurtisspikecurtis approved these changes

Assignees

@coadlercoadler

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Fix error in PGCoordinator handling of missed heartbeats
2 participants
@coadler@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp