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

[receiver/postgresql] Fix race condition when capturing errors #23033

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

djaglowski
Copy link
Member

@djaglowski djaglowski commented Jun 2, 2023

Resolves #23026

Much of the scraping is handled by goroutines, but we were aggregating errors onto a non-threadsafe struct. I've wrapped the struct to make it threadsafe.

@djaglowski djaglowski force-pushed the postgres-int-race branch from a05e745 to 4c9b9d3 Compare June 2, 2023 15:28
@djaglowski djaglowski marked this pull request as ready for review June 2, 2023 16:21
@djaglowski djaglowski requested review from a team and codeboten June 2, 2023 16:21
@djaglowski djaglowski force-pushed the postgres-int-race branch from 4c9b9d3 to b51c9e6 Compare June 2, 2023 16:51
@djaglowski djaglowski merged commit 297250e into open-telemetry:main Jun 2, 2023
@djaglowski djaglowski deleted the postgres-int-race branch June 2, 2023 17:32
@github-actions github-actions bot added this to the next release milestone Jun 2, 2023
Caleb-Hurshman pushed a commit to observIQ/opentelemetry-collector-contrib that referenced this pull request Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[receiver/postgresql] Data race in integration test
4 participants