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 concurrent map access panic #223

Closed
wants to merge 2 commits into from
Closed

Conversation

lgfa29
Copy link
Contributor

@lgfa29 lgfa29 commented May 10, 2021

#203 added support for additional headers for the provider, but also uncovered a bug in the Nomad api package that caused a panic whenever concurrent access to the header map happened.

The bug was fixed and this PR just pulls the latest released code.

A new test and a broken commit are provided to illustrate that this fixes the problem.

Closes #221 #222 #215

@lgfa29 lgfa29 force-pushed the fix-panic-concurrent-access branch from ff82981 to 6b2db96 Compare May 10, 2021 20:52
@lgfa29 lgfa29 marked this pull request as ready for review May 10, 2021 21:18
@lgfa29 lgfa29 requested review from jazzyfresh and jrasell May 10, 2021 21:18
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

I believe we can run a go mod tidy from the root directory to clean up some old dependancies.

@lgfa29
Copy link
Contributor Author

lgfa29 commented May 11, 2021

Closing this one for #226 since it has other related work.

Code review suggestion applied on #226.

@lgfa29 lgfa29 closed this May 11, 2021
@lgfa29 lgfa29 deleted the fix-panic-concurrent-access branch August 15, 2023 18:52
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.

fatal error: concurrent map read and map write
2 participants