Skip to content

Conversation

@henrybear327
Copy link
Contributor

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: henrybear327
Once this PR has been reviewed and has the lgtm label, please assign spzala for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Root cause: `RunWatchLoop()` spawned detached goroutines that were not
tracked by the main `sync.WaitGroup`.

When the parent `SimulateTraffic` is about to exit and calls
`wg.Done()`, it will unblocked immediately, allowing Reports() to read
from the history while detached goroutines were still writing to it
since not all of them have been terminated.

Signed-off-by: Chun-Hung Tseng <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Chun-Hung Tseng <[email protected]>
@henrybear327 henrybear327 force-pushed the robustness/fix_error_logging branch from e7f442a to e5d1fff Compare January 15, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants