Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

finish writing to stepsCompleted before allowing next step to read it #937

Merged
merged 2 commits into from
May 14, 2019

Conversation

laverya
Copy link
Member

@laverya laverya commented May 14, 2019

What I Did

Resolved a race condition that could occur when moving to the next step after saving a config.

How I Did it

Added a lock to the complete step management code to ensure that future steps do not attempt to determine what steps have been completed until the previous step has the opportunity to update the list of completed steps.

How to verify it

Description for the Changelog

Resolved a race condition that could occur when moving to the next step after saving a config.

Picture of a Ship (not required but encouraged)

USS Davis (DD-937)

@laverya laverya requested a review from dexhorthy May 14, 2019 00:12
@laverya laverya merged commit 45c9b00 into replicatedhq:master May 14, 2019
@laverya laverya deleted the state-completion-race-condition branch May 14, 2019 01:03
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.

2 participants