Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1145

Unit Tests timeout in some environments

    XMLWordPrintableJSON

    Details

      Description

      This was first reported by Jeff on the dev mailing list using CentOS 7 and JDK 8 (both OpenJDK and Oracle, at times) and has since also been reproduced in the Travis CI environment (Ubuntu LTS 12.04 with Oracle JDK 8, JDK 7 is fine).

      The associated thread on the mailing list is available at https://mail-archives.apache.org/mod_mbox/nifi-dev/201511.mbox/%3C66915AAF-B7EE-4792-9CA0-1DB0583763AA@gmail.com%3E

      Limited sample size suggests it is a JDK 8 issue on Linux.

      Failure is:

      Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 29.094 sec <<< FAILURE! - in org.apache.nifi.controller.TestStandardFlowFileQueue
      testDropSwappedFlowFiles(org.apache.nifi.controller.TestStandardFlowFileQueue)  Time elapsed: 21.461 sec  <<< ERROR!
      org.junit.runners.model.TestTimedOutException: test timed out after 20000 milliseconds
      	at java.lang.Throwable.fillInStackTrace(Native Method)
      	at java.lang.Throwable.fillInStackTrace(Throwable.java:783)
      	at java.lang.Throwable.<init>(Throwable.java:250)
      	at org.mockito.internal.debugging.LocationImpl.<init>(LocationImpl.java:24)
      	at org.mockito.internal.debugging.LocationImpl.<init>(LocationImpl.java:19)
      	at org.mockito.internal.invocation.InvocationImpl.<init>(InvocationImpl.java:50)
      	at org.mockito.internal.creation.cglib.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:58)
      	at org.apache.nifi.connectable.Connection$$EnhancerByMockitoWithCGLIB$$f8cf731f.getDestination(<generated>)
      	at org.apache.nifi.controller.StandardFlowFileQueue.put(StandardFlowFileQueue.java:316)
      	at org.apache.nifi.controller.TestStandardFlowFileQueue.testDropSwappedFlowFiles(TestStandardFlowFileQueue.java:198)
      

        Attachments

          Activity

            People

            • Assignee:
              aldrin Aldrin Piri
              Reporter:
              aldrin Aldrin Piri
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: