Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
Apache Maven 3.6.0;
openjdk version "1.8.0_342";
OpenJDK Runtime Environment (build 1.8.0_342-8u342-b07-0ubuntu1~20.04-b07);
OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode);
Description
1. org.apache.nifi.processors.standard.TestSegmentContent.test
This is a flaky test, it can pass mvn test while but when run using the tool NonDex, it fails. NonDex is a tool that will introduce non-determinism in certain java collections.
The test shows below:
[ERROR] Failures:
[ERROR] TestSegmentContent.test:51 FlowFile content differs from input at byte 0 with input having value 1 and FlowFile having value 9
Steps to reproduce the failure:
- Run the following command in nifi:
- First, build the module:
mvn install -pl nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors -am -DskipTests -Drat.skip
- Then run the test using NonDex
1. mvn edu.illinois:nondex-maven-plugin:1.1.2:nondex -pl nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors -Dtest=org.apache.nifi.processors.standard.TestSegmentContent#test
The result will be saved under the module folder in .nondex
Attachments
Attachments
Issue Links
- links to