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

fabio martelli closed SYNCOPE-89.
---------------------------------


Bulk close for 1.0.0-RC2-incubating
                
> ReportTestITCase.executeAndExport hangs with oracle
> ---------------------------------------------------
>
>                 Key: SYNCOPE-89
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-89
>             Project: Syncope
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.0.0-incubating
>         Environment: running tests with oracle-it profile
>            Reporter: fabio martelli
>            Assignee: fabio martelli
>             Fix For: 1.0.0-incubating
>
>
> ReportTestITCase.executeAndExport hangs with oracle.
> A certain delay to execute operations on the repository implies to re-execute 
> request till the end of certain operations. 
> The same is for the test in object.
> The following code could implies more then one request sending. Unfortunately 
> the fifth attempt hangs the process ....
> i = 0;
>         maxit = 10;
>         do {
>             try {
>                 Thread.sleep(1000);
>             } catch (InterruptedException e) {
>             }
>             getMethod = new HttpGet(BASE_URL + "report/execution/export/" + 
> postExecIds.iterator().next());
>             response = ((PreemptiveAuthHttpRequestFactory) 
> restTemplate.getRequestFactory()).getHttpClient().execute(
>                     getMethod);
>             i++;
>         } while ((response == null || 
> response.getStatusLine().getStatusCode() != 200) && i < maxit);
> Extending the sleep time at 3s the execution will be completed before the 
> fifth request so the test passes.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to