Skip to content

Improve name generation on concurrent requests#6025

Merged
unclejack merged 1 commit intomoby:masterfrom
crosbymichael:concurrent-names
May 27, 2014
Merged

Improve name generation on concurrent requests#6025
unclejack merged 1 commit intomoby:masterfrom
crosbymichael:concurrent-names

Conversation

@crosbymichael
Copy link
Copy Markdown
Contributor

Fixes #2586

This fixes a few races where the name generator asks if a name is free
but another container takes the name before it can be reserved. This
solves this by generating the name and setting it. If the set fails
with a non unique error then we try again.
Docker-DCO-1.1-Signed-off-by: Michael Crosby [email protected] (github: crosbymichael)

Fixes moby#2586

This fixes a few races where the name generator asks if a name is free
but another container takes the name before it can be reserved.  This
solves this by generating the name and setting it.  If the set fails
with a non unique error then we try again.
Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)
@crosbymichael
Copy link
Copy Markdown
Contributor Author

@anandkumarpatel could you try out this PR. It should help a lot with concurrent runs of containers and should remove errors that you have seen with other issues.

@vieux
Copy link
Copy Markdown
Contributor

vieux commented May 24, 2014

LGTM

@crosbymichael
Copy link
Copy Markdown
Contributor Author

ping @unclejack

@unclejack
Copy link
Copy Markdown
Contributor

LGTM

unclejack added a commit that referenced this pull request May 27, 2014
Improve name generation on concurrent requests
@unclejack unclejack merged commit 0d9a5ce into moby:master May 27, 2014
@anandkumarpatel
Copy link
Copy Markdown
Contributor

@crosbymichael Will check it out and let you know if I still see errors.

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.

Running containers in parallel on docker 0.6.6 produces error: Cannot find child...

9 participants