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(secure_storage): handle parallel read/write/delete operations on Windows #5194

Conversation

Jordan-Nelson
Copy link
Member

Issue #, if available: #5190

Description of changes:

  • Update FileKeyValueStore to process tasks one at a time in the order in which they are received

This PR accomplished two things:

  1. Addresses a bug on Windows in which the file can become corrupted when there are many multiple writes/deletes occurring without awaiting them. On windows it appears that it is not safe to make multiple File system API calls in parallel (MacOS does not have this issue).
  2. Ensures that even if the caller does not await write/delete events, that they are processed in the order in which they are received.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Jordan-Nelson
Copy link
Member Author

Closing in favor of #5195

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.

1 participant