[ 
https://issues.apache.org/jira/browse/SLING-9069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrei Dulvac updated SLING-9069:
---------------------------------
    Description: 
The {{Polling}} class has a line that can throw a format exception in case the 
message of lastException contains a "%":

{{throw new TimeoutException(String.format(message(), effectiveTimeout, 
delay));}}



  was:
In cloud environment, it is likely to have 503 or broken connection at a very 
low rate <1% of requests. This add unwanted flakiness to tests.

Generally 503 or broken connection should be retried (at least that is 
recommended), thus it would be nice to introduce it on the 
AbstractSlingClient.doRequest(...) which seems to be the best place as common 
code (doGet, doPost etc..).


> Polling format exception in case of TimeoutException
> ----------------------------------------------------
>
>                 Key: SLING-9069
>                 URL: https://issues.apache.org/jira/browse/SLING-9069
>             Project: Sling
>          Issue Type: Improvement
>          Components: Apache Sling Testing Clients
>    Affects Versions: Apache Sling Testing Clients 1.2.4
>            Reporter: Andrei Dulvac
>            Assignee: Andrei Dulvac
>            Priority: Critical
>             Fix For: Apache Sling Testing Clients 1.2.6
>
>
> The {{Polling}} class has a line that can throw a format exception in case 
> the message of lastException contains a "%":
> {{throw new TimeoutException(String.format(message(), effectiveTimeout, 
> delay));}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to