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

Add retry logic for connection timeout exception #515

Merged
merged 3 commits into from
Apr 3, 2021

Conversation

JamesForsee
Copy link
Contributor

On a private jenkins server we were experiencing a problem where the EC2SlaveMonitor would query aws for an agent and get a response code with the error code 'RequestExpired'. This would result in the slave monitor deleting the agents from jenkins but the instances were still running within aws. Worse the orphaned agents would still count towards the instance cap and eventually prevent us from spinning up additional agents when required.
Adding the timeout condition to the retry logic resolved this problem for us.

@res0nance
Copy link
Contributor

Could a test be added for this?

@JamesForsee
Copy link
Contributor Author

I added some testing for the CloudHelper class as requested.

@JamesForsee
Copy link
Contributor Author

@res0nance Any chance this could be merged now that tests have been added

@JamesForsee
Copy link
Contributor Author

JamesForsee commented Feb 23, 2021

@froblesmartin @res0nance Could I get some eyes on this when you get a chance? I've updated the pull request as requested

@res0nance res0nance merged commit 6a7345a into jenkinsci:master Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants