Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-89

ReportTestITCase.executeAndExport hangs with oracle

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-incubating
    • 1.0.0-incubating
    • core
    • None
    • running tests with oracle-it profile

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              fmartelli Fabio Martelli
              fmartelli Fabio Martelli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: