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

stanza: respect context in emittest.Sink #32733

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

axw
Copy link
Contributor

@axw axw commented Apr 29, 2024

Description:

Respect context cancellation in emittest.Sink to prevent deadlock if the emit callback is invoked during manager shutdown.

Link to tracking Issue:

Related to #32391. Increasing the poll interval in TestCopyTruncate to 5s reliably causes the "timeout: expected: 2700, actual: ..." failure in the linked issue; the test never terminates, and this blocks other tests from running.

Testing:

N/A, fixing test code

Documentation:

N/A

Respect context cancellation to prevent deadlock
if the emit callback is invoked during manager
shutdown.
@axw
Copy link
Contributor Author

axw commented Apr 29, 2024

This is only a test fix, so I think this should be labelled "Skip changelog" - let me know if I should add something.

@djaglowski djaglowski added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Apr 30, 2024
Copy link
Member

@djaglowski djaglowski left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @axw!

@djaglowski djaglowski merged commit 411e2c0 into open-telemetry:main Apr 30, 2024
175 of 176 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 30, 2024
@axw axw deleted the stanza-emitttest-context branch May 1, 2024 04:05
rimitchell pushed a commit to rimitchell/opentelemetry-collector-contrib that referenced this pull request May 8, 2024
**Description:**

Respect context cancellation in emittest.Sink to prevent deadlock if the
emit callback is invoked during manager shutdown.

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

Related to
open-telemetry#32391.
Increasing the poll interval in TestCopyTruncate to 5s reliably causes
the "timeout: expected: 2700, actual: ..." failure in the linked issue;
the test never terminates, and this blocks other tests from running.

**Testing:**

N/A, fixing test code

**Documentation:**

N/A
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Jul 11, 2024
**Description:**

Respect context cancellation in emittest.Sink to prevent deadlock if the
emit callback is invoked during manager shutdown.

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

Related to
open-telemetry#32391.
Increasing the poll interval in TestCopyTruncate to 5s reliably causes
the "timeout: expected: 2700, actual: ..." failure in the linked issue;
the test never terminates, and this blocks other tests from running.

**Testing:**

N/A, fixing test code

**Documentation:**

N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/stanza Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants