Skip to content

deps: fix race condition during graph traversal#9878

Merged
milas merged 1 commit intodocker:v2from
milas:fix-graph-race
Sep 27, 2022
Merged

deps: fix race condition during graph traversal#9878
milas merged 1 commit intodocker:v2from
milas:fix-graph-race

Conversation

@milas
Copy link
Copy Markdown
Contributor

@milas milas commented Sep 26, 2022

What I did
Keep track of visited nodes to prevent visiting a service multiple times. This is possible when a service depends on multiple others, as an attempt could be made to visit it from multiple parents.

Related issue
Fixes #9014.

(not mandatory) A picture of a cute animal, if possible in relation with what you did
identical looking cats

Keep track of visited nodes to prevent visiting a service multiple
times. This is possible when a service depends on multiple others,
as an attempt could be made to visit it from multiple parents.

Signed-off-by: Milas Bowman <[email protected]>
@milas milas added the kind/bug label Sep 26, 2022
@milas milas requested a review from a team September 26, 2022 22:08
@milas milas self-assigned this Sep 26, 2022
Copy link
Copy Markdown
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@milas milas merged commit 616777e into docker:v2 Sep 27, 2022
@milas milas deleted the fix-graph-race branch September 27, 2022 13:01
@rogerhu
Copy link
Copy Markdown

rogerhu commented Sep 27, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker compose using depends_on can lead to duplicate graph traversals

4 participants