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

[AMBARI-22805] Improve Blueprints error handling in case of timeout #179

Merged

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

This is a small addendum for #146 to improve behavior in case of timeout:

  • pass last seen error if present to callback, instead of TimeoutException
  • add message to the exception thrown when not all required hosts have joined the cluster
  • subtract retry delay from time left for subsequent attempt (since time left is calculated before scheduling with the delay)

How was this patch tested?

Tested cluster provisioning failure with various timeouts. Added unit test.

@asfgit
Copy link

asfgit commented Jan 24, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/256/
Test PASSed.

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.

5 participants