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 synchronization error for read/write keyring.keys #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zuweiliu
Copy link

@zuweiliu zuweiliu commented Apr 9, 2019

keyring.keys is not always protected by keyring lock, caused race condition. This fix is to always read out the keys using lock, and process on the local copy to avoid race condition

@hashicorp-cla
Copy link

hashicorp-cla commented Apr 9, 2019

CLA assistant check
All committers have signed the CLA.

@dnephin
Copy link
Contributor

dnephin commented Mar 24, 2021

Thank you for the PR! Is this still an issue? Are there any tests which fail when run with go test -race ? I did not see this in #232 which enables the race detector.

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.

3 participants