[JIRA] (JENKINS-58544) Implement HTTP client retries

7 views
Skip to first unread message

rmyslek@atlassian.com (JIRA)

unread,
Jul 18, 2019, 7:15:02 AM7/18/19
to jenkinsc...@googlegroups.com
Rafal Myslek created an issue
 
Jenkins / Improvement JENKINS-58544
Implement HTTP client retries
Issue Type: Improvement Improvement
Assignee: Lenin Raj Rajasekaran
Components: atlassian-jira-software-cloud-plugin
Created: 2019-07-18 11:14
Priority: Minor Minor
Reporter: Rafal Myslek

We should make sure the plugin does retries on ingestion when timeouts/errors happen.

We should add retries to the OkHttp client config we use in the plugin. It looks like OkHttp already does some retries out-of-the-box: https://medium.com/inloopx/okhttp-is-quietly-retrying-requests-is-your-api-ready-19489ef35ace

In these 3 scenarios, retries are handled automatically by Okhttp: https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/-builder/retry-on-connection-failure/

Based on the server response, we can also add additional logic to perform retries.

Implementation:

We can do 3 retries with a delay of 2 seconds between each try when we receive 5XX from the ingestion API.
 
 
 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

lrajasekaran@atlassian.com (JIRA)

unread,
Jul 18, 2019, 7:41:02 PM7/18/19
to jenkinsc...@googlegroups.com
Lenin Raj Rajasekaran started work on Improvement JENKINS-58544
 
Change By: Lenin Raj Rajasekaran
Status: Open In Progress

rmyslek@atlassian.com (JIRA)

unread,
Jul 28, 2019, 11:41:02 PM7/28/19
to jenkinsc...@googlegroups.com
Change By: Rafal Myslek
Status: In Review Resolved
Resolution: Fixed

rmyslek@atlassian.com (JIRA)

unread,
Jul 28, 2019, 11:41:02 PM7/28/19
to jenkinsc...@googlegroups.com

rmyslek@atlassian.com (JIRA)

unread,
Aug 19, 2019, 10:24:03 PM8/19/19
to jenkinsc...@googlegroups.com
Rafal Myslek closed an issue as Fixed
Change By: Rafal Myslek
Status: Resolved Closed
Reply all
Reply to author
Forward
0 new messages