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 data race in agent manager tests #5543

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

azdagron
Copy link
Member

@azdagron azdagron commented Oct 4, 2024

Entries is not safe to access concurrently while logs are being written by another goroutine. This is causing failures in CI/CD. Using AllEntries() instead, which is internally protected by a mutex.

@azdagron azdagron force-pushed the fix-agent-manager-data-race branch 2 times, most recently from 8435209 to f6d3dc5 Compare October 4, 2024 23:03
@azdagron azdagron force-pushed the fix-agent-manager-data-race branch from f6d3dc5 to 0a6d907 Compare October 4, 2024 23:51
@azdagron azdagron merged commit 3d48ac3 into spiffe:main Oct 5, 2024
34 checks passed
@azdagron azdagron deleted the fix-agent-manager-data-race branch October 5, 2024 14:15
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