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: lock adding to tailnet waitgroup to avoid race (and fix flake)#14195

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

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedAug 7, 2024
edited
Loading

Fixes#14143.
Fixes a race condition that can occur when atailnet connection is closed just before a network telemetry event is about to be sent off. Specifically, wherewaitgroup.Add(n) is called on a waitgroup wherewaitgroup.Wait() is currently blocking another goroutine.

This works as we only callWait() on thetelemetryWg waitgroup when theConn mutex is held, and only after the closed channel has been closed. We then require that the goroutine sending the telemetry event acquire said mutex, and that the channel is not closed, before adding to the waitgroup and sending the event.

@ethanndicksonGraphite App
Copy link
MemberAuthor

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

Join@ethanndickson and the rest of your teammates onGraphiteGraphite

@ethanndicksonethanndickson marked this pull request as ready for reviewAugust 7, 2024 05:49
@ethanndicksonethanndickson merged commite09ad1d intomainAug 7, 2024
@ethanndicksonethanndickson deleted the 08-07-fix_lock_adding_to_tailnet_waitgroup_to_avoid_race_and_fix_flake_ branchAugust 7, 2024 05:52
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 7, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

flake:TestSSH/RemoteForward
2 participants
@ethanndickson@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp