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

deps: fix race condition during graph traversal #9878

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

milas
Copy link
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 <milas.bowman@docker.com>
@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
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
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

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