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

fix: break the watch loop when the watch fails #1933

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

smira
Copy link
Contributor

@smira smira commented Sep 25, 2023

Otherwise the goroutine keeps spinning in the endless loop as ch gets closed on error and Stop().

What this PR does / why we need it:

Fixes the issue with 100% CPU usage after a sonobuoy run.

The problem arises when using sonobuoy as a library, and after a integration test run the process proceeds with other stuff, but this stuck goroutine consumes 100% CPU. If another test run happens, we have 2 goroutines, and so on.

Which issue(s) this PR fixes

  • Fixes #

Special notes for your reviewer:

Release note:

release-note

smira and others added 3 commits September 25, 2023 18:14
Otherwise the goroutine keeps spinning in the endless loop as `ch` gets
closed on error and Stop().

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@franknstyle franknstyle merged commit e5bb561 into vmware-tanzu:main Oct 18, 2023
19 checks passed
smira added a commit to smira/talos that referenced this pull request Oct 19, 2023
PR vmware-tanzu/sonobuoy#1933 got merged and
0.57.0 releases, so update accordingly.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants