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

No error #38

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

No error #38

wants to merge 4 commits into from

Conversation

wsoula
Copy link
Contributor

@wsoula wsoula commented Jan 10, 2017

We used to use this plugin and had no issues, then we switched to running it in a docker container and started getting errors like: com.ctc.wstx.exc.WstxIOException which when run in debug would point to a timeout from aws. When I run the container locally I could not reproduce the problem. but when running on another host in our environment I could reproduce it. This pull request adds a retry around the call that was failing. Another fix would be to remove it, as it appears to not be necessary, but I went the route of least change. We have started to use this version in our environment and the issue has gone away as a second retry works.

My .editorconfig removed a lot of unecessary whitespace

@@ -372,7 +374,18 @@ private Stack waitForStackToBeCreated() throws TimeoutException {
private void printStackEvents() {
DescribeStackEventsRequest r = new DescribeStackEventsRequest();
r.withStackName(getExpandedStackName());
DescribeStackEventsResult describeStackEvents = amazonClient.describeStackEvents(r);
int count = 0;
Copy link

@DI-DaveGoodine DI-DaveGoodine Jan 11, 2017

Choose a reason for hiding this comment

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

I think count should be set to 1 here, so that the initial retry is not:

Got an error getting stack status, retrying 0 out of 3 times

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

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