Skip to content

Fix synchronization error for read/write keyring.keys#192

Open
zuweiliu wants to merge 1 commit into
hashicorp:masterfrom
zuweiliu:lock
Open

Fix synchronization error for read/write keyring.keys#192
zuweiliu wants to merge 1 commit into
hashicorp:masterfrom
zuweiliu:lock

Conversation

@zuweiliu

@zuweiliu zuweiliu commented Apr 9, 2019

Copy link
Copy Markdown

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

hashicorp-cla commented Apr 9, 2019

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@dnephin

dnephin commented Mar 24, 2021

Copy link
Copy Markdown
Contributor

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