Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exporter: fix hang when exporter fails to start
[upstream commit: 44bd44c] 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 <[email protected]>
- Loading branch information