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

ReportTestITCase.executeAndExport hangs with oracle

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-incubating
    • Fix Version/s: 1.0.0-incubating
    • Component/s: core
    • Labels:
      None
    • Environment:
      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

              • Assignee:
                fmartelli fabio martelli
                Reporter:
                fmartelli fabio martelli
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: