Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.5.2
-
None
-
Unknown
Description
Currently when using a org.apache.cxf.clustering.RetryStrategy with org.apache.cxf.clustering.FailoverFeature on a JAXRSClientFactory it will always retry in case of HTTP status codes 404, 503 and 429 (https://github.com/apache/cxf/blob/master/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java#L1603-L1605). While this is reasonable to do always for the latter two a 404 could also indicate a regular ReST API response in case of invalid parametrisation.
Therefore it should be possible to optionally disable retries for 404.
Attachments
Issue Links
- is related to
-
CXF-8726 org.apache.cxf.jaxrs.client.ResponseExceptionMapper cannot evaluate response body in case of retries and org.apache.cxf.transport.service_not_available being true
- Open
- links to