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

Remove data races in downloader caused by shared use of json path eval. #547

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

s-l-teichmann
Copy link
Contributor

util.PathEval objects are intended to be used single threaded.
Therefore sharing one for all workers in the downloader is causing data races.

This PR addresses this.

@s-l-teichmann s-l-teichmann linked an issue Jun 21, 2024 that may be closed by this pull request
Copy link
Contributor

@koplas koplas left a comment

Choose a reason for hiding this comment

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

LGTM

@ThomasJunk
Copy link
Contributor

LGTM

Copy link
Contributor

@ThomasJunk ThomasJunk left a comment

Choose a reason for hiding this comment

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

Works!

@s-l-teichmann s-l-teichmann merged commit 5c6736b into main Jun 24, 2024
5 checks passed
@s-l-teichmann s-l-teichmann deleted the downloader_races branch June 24, 2024 09:58
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.

Race condition on csaf_downloader
3 participants