Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8725

Allow RetryStrategy to optionally not retry for HTTP 404 responses

    XMLWordPrintableJSON

Details

    • 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

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: