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 race condition in ReloadConfig #760

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

ajmaidak
Copy link
Contributor

Calling ReloadConfig was not thread safe in spite of the mutex. One thread could overwrite the package level cfg pointer after it was mutated by another thread.

@SuperQ
Copy link
Member

SuperQ commented Aug 13, 2023

This needs a DCO sign-off. You can use git commit -s --amend to add it.

Calling ReloadConfig was not thread safe in spite of mutex.  One thread
could overwrite the package level cfg pointer after it was mutated by
another thread.

Signed-off-by: Alexander J. Maidak <ajmaidak@gmail.com>
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to ignore the mixin error, it's unrelated to this change.

@SuperQ SuperQ merged commit 263b96d into prometheus:main Aug 29, 2024
1 check passed
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