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

otlptracegrpc: Check error on Shutdown in tests #4517

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

pellared
Copy link
Member

@pellared pellared commented Sep 15, 2023

Fixes #4506. PS. The test would still fail, but at least the error report would tell us more.

I tried to reproduce the issue on my Windows for almost half an hour but without luck.

I checked all the "cleanup" code and all looks to be cleaned up but I have found places where the cleanup is checked for errors. My assumption is that stopping some client connection returned an error (some transient OS error) and left some hanging goroutine.

@pellared pellared added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Sep 15, 2023
@pellared
Copy link
Member Author

@tonisanta PTAL

@tonisanta
Copy link

Hey @pellared, nice catch! For sure will be useful to identify potential issues on those flaky tests

@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Merging #4517 (cdb2049) into main (84f6b36) will increase coverage by 0.0%.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #4517   +/-   ##
=====================================
  Coverage   81.3%   81.3%           
=====================================
  Files        220     220           
  Lines      17678   17678           
=====================================
+ Hits       14386   14388    +2     
+ Misses      2992    2990    -2     
  Partials     300     300           

@pellared pellared merged commit 2373e9b into open-telemetry:main Sep 18, 2023
@pellared pellared deleted the otlptracegrpc branch September 18, 2023 07:44
@MrAlias MrAlias added this to the v1.19.0/v0.42.0 milestone Sep 28, 2023
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.

Flaky test in exporters/otlp/otlptrace/otlptracegrpc/...
5 participants