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

Remove deadlock when endpoint creation failed #26

Merged
merged 5 commits into from
Oct 31, 2017
Merged

Remove deadlock when endpoint creation failed #26

merged 5 commits into from
Oct 31, 2017

Conversation

miiitch
Copy link
Contributor

@miiitch miiitch commented Oct 17, 2017

If and endpoint creation failed, the status of the endpoint is kept at $false and the _trackProgress method never ends.

If the status is $false, I add a check on the operational status to verify if the creation is still in progress. If there is a failure I write the failure message on the error output

@DarqueWarrior
Copy link
Collaborator

Sorry for the delay I will try and review today.

@DarqueWarrior
Copy link
Collaborator

Please add unit tests to cover your new code.

miiitch and others added 2 commits October 26, 2017 12:57
Returning a value implies we expect it to fail. Failing to create is an exception to what we expect to happen.
@miiitch
Copy link
Contributor Author

miiitch commented Oct 30, 2017

You're right, it's better. Is it consistant with the other parts of the module?

@DarqueWarrior
Copy link
Collaborator

The only other place where I track a process is creating a project. I want to complete the PR then we can see if we want to add that there.

@DarqueWarrior DarqueWarrior merged commit 5fbfc0e into MethodsAndPractices:master Oct 31, 2017
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.

2 participants