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

Some JMS unit tests are failing since nifi 1.14.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.14.0
    • None
    • Core Framework
    • None

    Description

      To reproduce the issue rename or create a copy of JMSPublisherConsumerIT as JMSPublisherConsumerTest. Then execute from root:

      git checkout rel/nifi-1.14.0
      mvn test -pl :nifi-jms-processors  
      git checkout rel/nifi-1.13.2
      mvn test -pl :nifi-jms-processors 
      

      I had to fix groovy-eclipse-batch at 1.13.2, but after use a valid version the issue can be reproduced.

      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.apache.nifi.jms.cf.JMSConnectionFactoryProviderTest
      [INFO] Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.636 s - in org.apache.nifi.jms.cf.JMSConnectionFactoryProviderTest
      [INFO] Running org.apache.nifi.jms.processors.JMSPublisherConsumerTest
      [ERROR] Tests run: 10, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 21.21 s <<< FAILURE! - in org.apache.nifi.jms.processors.JMSPublisherConsumerTest
      [ERROR] validateMessageRedeliveryWhenNotAcked(org.apache.nifi.jms.processors.JMSPublisherConsumerTest)  Time elapsed: 0.038 s  <<< FAILURE!
      org.junit.ComparisonFailure: expected:<[2]> but was:<[1]>
      	at org.apache.nifi.jms.processors.JMSPublisherConsumerTest.validateMessageRedeliveryWhenNotAcked(JMSPublisherConsumerTest.java:458)
      
      [ERROR] testMultipleThreads(org.apache.nifi.jms.processors.JMSPublisherConsumerTest)  Time elapsed: 20.003 s  <<< ERROR!
      org.junit.runners.model.TestTimedOutException: test timed out after 20000 milliseconds
      	at app//org.apache.nifi.jms.processors.JMSPublisherConsumerTest.testMultipleThreads(JMSPublisherConsumerTest.java:374)
      Nifi 1.14.0 by renaming JMSPublisherConsumerTest to be covered by mvn test command.
      

      Nifi 1.13.2 success

      [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ nifi-jms-processors ---
      [INFO] 
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.apache.nifi.jms.cf.JMSConnectionFactoryProviderTest
      [INFO] Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.512 s - in org.apache.nifi.jms.cf.JMSConnectionFactoryProviderTest
      [INFO] Running org.apache.nifi.jms.processors.JMSPublisherConsumerTest
      [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.781 s - in org.apache.nifi.jms.processors.JMSPublisherConsumerTest
      [INFO] Running org.apache.nifi.jms.processors.ConsumeJMSManualTest
      [WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 s - in org.apache.nifi.jms.processors.ConsumeJMSManualTest
      [INFO] Running org.apache.nifi.jms.processors.ConnectionFactoryConfigValidatorTest
      [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.022 s - in org.apache.nifi.jms.processors.ConnectionFactoryConfigValidatorTest
      [INFO] 
      [INFO] Results:
      

      Be aware that JMS is not safe to be used in Nifi 1.14.0 (at least by looking at unit tests.)

      Slack channel: https://apachenifi.slack.com/archives/C0L9S92JY/p1631974074041400

      Attachments

        Activity

          People

            Unassigned Unassigned
            gardellajuanpablo Gardella Juan Pablo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: