Use API server retry logic #6538

Merged
merged 1 commit into from Nov 4, 2016

Conversation

Projects
None yet
5 participants
Contributor

dooferlad commented Nov 3, 2016

When connecting to the API server the retry logic didn't fire, which resulted in all the workers restarting after three seconds. The intent was obviously different. Will now try connecting every 200ms for a second. A pleasing side effect is that tests run much more quickly without 3 second pauses in them.

Tested by running the unit tests.

When connecting to the API server the retry logic didn't fire, which …
…resulted in all the workers restarting after three seconds. The intent was obviously different. Will now try connecting every 200ms for a second. A pleasing side effect is that tests run much more quickly without 3 second pauses in them.

@dooferlad dooferlad changed the base branch from staging to develop Nov 3, 2016

@dooferlad dooferlad changed the title from Use API server the retry logic to Use API server retry logic Nov 3, 2016

Contributor

bz2 commented Nov 3, 2016

!!retry!!

Owner

nskaggs commented Nov 3, 2016

!!retry!!

Contributor

dooferlad commented Nov 4, 2016

!!retry!!

Contributor

dooferlad commented Nov 4, 2016

@bz2 @nskaggs can the bot provide/link to some help for available commands? Maybe just some text on the Jenkins page that the details link points to if we can't customise the checks have failed/passed message.

Owner

nskaggs commented Nov 4, 2016

Anything between !! !! Will trigger a build. It seems like @gz, the bot doesn't like you :(

Owner

nskaggs commented Nov 4, 2016

!!weneedaretrythebotlikesme!!

Contributor

dooferlad commented Nov 4, 2016

@nskaggs boo. The quick tests seem to be broken too :-(

Owner

nskaggs commented Nov 4, 2016

@dooferlad yea, looks like the upgrade just broke things.

Owner

nskaggs commented Nov 4, 2016

!!build!!

LGTM. Note: we might want to tweak this again as we may be standardizing on https://gopkg.in/retry.v1

+
+ if openAttempt.Min == 0 && openAttempt.Delay > 0 {
+ openAttempt.Min = int(openAttempt.Total / openAttempt.Delay)
+ }
@kat-co

kat-co Nov 4, 2016

Contributor

I would instead fail here. This is a great way to hide issues in calling code.

Contributor

dooferlad commented Nov 4, 2016

$$merge$$

Contributor

jujubot commented Nov 4, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 9f44391 into juju:develop Nov 4, 2016

1 check passed

github-check-merge-juju Built PR, ran unit tests, and tested LXD deploy. Use !!.*!! to request another build. IE, !!build!!, !!retry!!
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment