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

CODENVY-1734: workaround docker exec not found problem in swarm #2011

Merged
merged 2 commits into from
Mar 30, 2017

Conversation

garagatyi
Copy link
Contributor

What does this PR do?

Workaround docker exec not found problem in swarm by waiting extra second and sending request again.
Also Swarm connector tries to log docker exec inspect info.

What issues does this PR fix or reference?

Related to #1734

Changelog

Add workaround for bug in Swarm when exec can't be found by Swarm

Release Notes

Docs PR

logMissingExecInfo(params.getExecId());
try {
// Wait in case swarm needs some time to find exec
Thread.sleep(1000);
Copy link
Contributor

@mmorhun mmorhun Mar 29, 2017

Choose a reason for hiding this comment

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

I'm afraid that 1 second could be not enough. Please set longer delay (maybe 5 seconds is long delay, but it will be better to wait it (almost for sure that exec will be visible by swarm) than give workspace starting error to user)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it is not so critical because we still trying to figure out proper fix on Swarm side. But I set it to 3 seconds. Hopefully it will be enough.

@garagatyi garagatyi merged commit 514f669 into codenvy:master Mar 30, 2017
@garagatyi garagatyi deleted the execIssue branch March 30, 2017 15:09
@JamesDrummond JamesDrummond added this to the 5.7.0 milestone Apr 9, 2017
@JamesDrummond JamesDrummond mentioned this pull request Apr 9, 2017
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants