Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Fix race condition in PersitsenceManager #219

Merged
merged 3 commits into from
Mar 12, 2021

Conversation

hlxid
Copy link
Member

@hlxid hlxid commented Mar 12, 2021

Closes #217.
Rewrites updateInstanceConfig to write the config before it returns, if no validation is needed. That way we don't create promises using the event loop that may be slower than us allowing saving which then could result in corrupted configs, as we saw in #217.

@hlxid hlxid changed the title Fix race condition in PersitenceManager Fix race condition in PersitsenceManager Mar 12, 2021
@hlxid hlxid merged commit f3ea0ac into master Mar 12, 2021
@hlxid hlxid deleted the fix/217-persistence-manager-race-condition branch March 12, 2021 18:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PersistenceManager can corrupt config due to a race condition
1 participant