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

exporter: fix hang when exporter fails to start #2119

Merged

Conversation

willfindlay
Copy link
Contributor

The Exporter.Start() implementation uses a WaitGroup to wait until the exporter is ready after launching it in a goroutine. Unfortunately, this WaitGroup never gets set to Done when we encounter an error while starting the exporter. This ultimately causes the Tetragon process to hang indefinitely. Fix the issue by simply calling readyWG.Done() when we encounter an error here.

Fix a hang when the event exporter fails to start.

@willfindlay willfindlay added area/userspace Related to userspace Tetragon logic release-note/bug This PR fixes an issue in a previous release of Tetragon. labels Feb 16, 2024
@willfindlay willfindlay requested a review from a team as a code owner February 16, 2024 18:34
The Exporter.Start() implementation uses a WaitGroup to wait until the exporter is ready after launching it in a goroutine. Unfortunately, this WaitGroup never gets set to Done when we encounter an error while starting the exporter. This ultimately causes the Tetragon process to hang indefinitely. Fix the issue by simply calling readyWG.Done() when we encounter an error here.

Signed-off-by: William Findlay <will@isovalent.com>
@willfindlay willfindlay force-pushed the pr/willfindlay/fix-hang-when-exporter-fails-to-start branch from dc424b0 to e2de4f2 Compare February 16, 2024 19:45
@willfindlay willfindlay merged commit 44bd44c into main Feb 16, 2024
32 checks passed
@willfindlay willfindlay deleted the pr/willfindlay/fix-hang-when-exporter-fails-to-start branch February 16, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/userspace Related to userspace Tetragon logic release-note/bug This PR fixes an issue in a previous release of Tetragon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants