Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[exporter/loadbalancing] Fix shutdown race #37477

Conversation

pjanotti
Copy link
Contributor

@pjanotti pjanotti commented Jan 24, 2025

Fix #37446 - The scope of the sync.WaitGroup used to ensure that a periodic function called from a background goroutine is finished is incorrect, allowing the function to be started after the shutdown was "completed". The fix just moves the calls to Add and Done to the correct scope.

Although a bug on the component it doesn't seem to deserve a changelog since it was detected via tests and there is no issue around the shutdown of the component.

@pjanotti pjanotti requested review from jpkrohling and a team as code owners January 24, 2025 14:52
@pjanotti pjanotti added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 24, 2025
@codeboten codeboten merged commit 818ad2c into open-telemetry:main Jan 24, 2025
175 of 176 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 24, 2025
chengchuanpeng pushed a commit to chengchuanpeng/opentelemetry-collector-contrib that referenced this pull request Jan 26, 2025
Fix open-telemetry#37446 - The scope of the `sync.WaitGroup` used to ensure that a
periodic function called from a background goroutine is finished is
incorrect, allowing the function to be started after the shutdown was
"completed". The fix just moves the calls to `Add` and `Done` to the
correct scope.

Although a bug on the component it doesn't seem to deserve a changelog
since it was detected via tests and there is no issue around the
shutdown of the component.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/loadbalancing Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[flaky test][exporter/loadbalancing] TestPeriodicallyResolveFailure data race
3 participants