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

[chore][receiver/azureeventhub] Enable goleak check #32364

Merged
merged 1 commit into from
Apr 13, 2024

Conversation

crobert-1
Copy link
Member

Description:

This enables goleak checks for the Azure Event Hub receiver to help ensure no goroutines are being leaked. This is a test only change, some goroutines were being detected as leaks simply because of the context.Background lifecycle. Using a cancel shows everything gets shutdown properly.

Link to tracking Issue:
#30438

Testing:
All existing tests are passing, as well as added goleak check.

@dmitryax dmitryax merged commit b142064 into open-telemetry:main Apr 13, 2024
171 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 13, 2024
djaglowski pushed a commit that referenced this pull request Apr 16, 2024
**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
As explained
[here](#30438 (comment)),
components need to cancel all their work and background tasks before
returning from `Shutdown`. My original [change for this
component](#32364)
to add `goleak` testing worked around the proper behavior. This PR fully
addresses the `Shutdown` functionality to ensure the component behaves
the way the spec requires.

**Link to tracking Issue:** <Issue number if applicable>
#30438

**Testing:** <Describe what testing was performed and which tests were
added.>
Tests are passing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants