Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10860

ServerErrorRetryStrategy should not retry if the code is expected

    XMLWordPrintableJSON

Details

    Description

      Currently the ServerErrorRetryStrategy would retry for the list of error codes or if not defined default for 500 and above.

      Let say you have a a test that expect a 500 or any other code define in the list of error codes.

      client.doGet("someurl", 500);

      That will then retry a number of time, while in fact this code is expected to happen, so in that case it should not retry.

      Since we have control on the "http" context parameter, the expected status codes could be passed in that object , and so used to decide or not if we need a retry too.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            petitbear68 Thierry Ygé
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h