eclipse-ee4j / eclipse-ee4j/jersey

ApacheConnectorProvider: Turning Off retries via

Open
#3,529 8 comments 0 reactions 0 assignees View on GitHub
Component: connectors Priority: Major Type: Bug
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

We're using Jersey Client with ApacheConnectorProvider as the foundation for our Micro-Services client libraries. Recently, a developer provided feedback that the client appears to perform a retry after an extended timeout, lasting about 10 minutes. This resulted in duplicate requests being processing.

Also, on other occasions we've seen the following class being called:
org.apache.http.impl.execchain.RetryExec
This insinuates the existence of retries.

Moreover, per the the HttpClientBuilder the default value for "automaticRetriesDisabled" is false. Consequently, retry is on by default.

It would be great for Jersey to expose the full array of configuration options available in the HttpClientBuilder. Thus, allowing engineers to configure the apache HttpClient as they see fit. However, the main objective I have currently is to gain access to configuring/toggling automaticRetriesDisabled.

If this is already possible, that is the ability to toggle automaticRetriesDisabled, it appreciate you pointing out how to accomplish this.
#### Environment
CentOS 6 and 7, Tomcat 8, Spring boot 1.33, Jersey 2.23.2
#### Affected Versions
[2.23.2]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.