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

GetTCP testSuccessInteraction failing for multi-threaded builds and bare .m2 repo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.2.0
    • Tools and Build

    Description

      GetTCP tests are failing for multi-threaded builds (e.g., mvn -T 2.0C clean install ...) when .m2 is completely empty and the build is being run for the first time.

      Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00)
      Maven home: /usr/local/maven
      Java version: 1.8.0_121, vendor: Oracle Corporation
      Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.29.amzn1.x86_64/jre
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux", version: "4.4.41-36.55.amzn1.x86_64", arch: "amd64", family: "unix"
      
      -------------------------------------------------------------------------------
      Test set: org.apache.nifi.processors.gettcp.TestGetTCP
      -------------------------------------------------------------------------------
      Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.775 sec <<< FAILURE! - in org.apache.nifi.processors.gettcp.TestGetTCP
      testSuccessInteraction(org.apache.nifi.processors.gettcp.TestGetTCP)  Time elapsed: 0.712 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<1> but was:<0>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.apache.nifi.util.StandardProcessorTestRunner.assertTransferCount(StandardProcessorTestRunner.java:319)
      	at org.apache.nifi.util.StandardProcessorTestRunner.assertAllFlowFilesTransferred(StandardProcessorTestRunner.java:314)
      	at org.apache.nifi.processors.gettcp.TestGetTCP.testSuccessInteraction(TestGetTCP.java:82)
      

      Attachments

        Issue Links

          Activity

            People

              joewitt Joe Witt
              jfrazee Joey Frazee
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: