You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "fabio martelli (JIRA)" <ji...@apache.org> on 2012/05/25 16:18:22 UTC

[jira] [Created] (SYNCOPE-89) ReportTestITCase.executeAndExport hangs with oracle

fabio martelli created SYNCOPE-89:
-------------------------------------

             Summary: 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
             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

        

[jira] [Resolved] (SYNCOPE-89) ReportTestITCase.executeAndExport hangs with oracle

Posted by "fabio martelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNCOPE-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

fabio martelli resolved SYNCOPE-89.
-----------------------------------

    Resolution: Fixed
    
> 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

        

[jira] [Closed] (SYNCOPE-89) ReportTestITCase.executeAndExport hangs with oracle

Posted by "fabio martelli (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Assigned] (SYNCOPE-89) ReportTestITCase.executeAndExport hangs with oracle

Posted by "fabio martelli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNCOPE-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

fabio martelli reassigned SYNCOPE-89:
-------------------------------------

    Assignee: fabio martelli
    
> 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