[
https://issues.apache.org/jira/browse/NIFI-9225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-9225.
----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> Some JMS unit tests are failing since nifi 1.14.0
> -------------------------------------------------
>
> Key: NIFI-9225
> URL: https://issues.apache.org/jira/browse/NIFI-9225
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.14.0
> Reporter: Gardella Juan Pablo
> Priority: Major
>
> To reproduce the issue rename or create a copy of {{JMSPublisherConsumerIT}}
> as {{JMSPublisherConsumerTest}}. Then execute from root:
> {noformat}
> 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
> {noformat}
> I had to fix groovy-eclipse-batch at 1.13.2, but after use a valid version
> the issue can be reproduced.
> {noformat}
> [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.
> {noformat}
> Nifi 1.13.2 success
> {noformat}
> [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:
> {noformat}
> 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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)