Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix flaky test that tests lots of threads calling emit. Make sure tests shutdown the batch exporter. #4600

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

Merged

Conversation

DylanRussell
Copy link
Contributor

Description

Fixes the BachProcessor.test_with_multiple_threads test which wasn't setup properly and was failing often.

Updates all tests using the BatchProcessor to call shutdown before the test ends. Otherwise the worker thread that gets spawned continues to run after the test ends.

Type of change

Please delete options that are not relevant.

  • [x ] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

This is just a change to improve the unit tests.

Does This PR Require a Contrib Repo Change?

No

Checklist:

  • [x ] Followed the style guidelines of this project
  • [N/A ] Changelogs have been updated
  • [x ] Unit tests have been added
  • [x ] Documentation has been updated

@DylanRussell DylanRussell requested a review from a team as a code owner May 23, 2025 16:18
@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 27, 2025
@xrmx xrmx enabled auto-merge (squash) May 27, 2025 15:59
@xrmx xrmx merged commit 12bcd45 into open-telemetry:main May 27, 2025
353 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants