[ 
https://issues.apache.org/jira/browse/NIFI-10891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17641537#comment-17641537
 ] 

ASF subversion and git services commented on NIFI-10891:
--------------------------------------------------------

Commit 8c74f54b9d4eb6a41b47094b4eec3effbd62e452 in nifi's branch 
refs/heads/support/nifi-1.19 from sopan98
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=8c74f54b9d ]

NIFI-10891 Replaced HashMap with LinkedHashMap in BinFiles

- Resolved non-deterministic behavior in 
TestMergeContent.testDefragmentMultipleMingledSegments

This closes #6727

Signed-off-by: David Handermann <exceptionfact...@apache.org>


> TestMergeContent.testDefragmentMultipleMingledSegments uses non-deterministic 
> HashMap 
> --------------------------------------------------------------------------------------
>
>                 Key: NIFI-10891
>                 URL: https://issues.apache.org/jira/browse/NIFI-10891
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>         Environment: 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);
>            Reporter: Sopan Phaltankar
>            Assignee: Sopan Phaltankar
>            Priority: Trivial
>             Fix For: 1.20.0, 1.19.1
>
>         Attachments: org.apache.nifi.processors.standard.TestMergeContent.txt
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {code:java}
> org.apache.nifi.processors.standard.TestMergeContent{code}
> This is a flaky test, it can pass mvn test while but when run using the tool 
> [NonDex|https://github.com/TestingResearchIllinois/NonDex], it fails. NonDex 
> is a tool that will introduce non-determinism in certain java collections.
> The test shows below:
> {code:java}
> [ERROR] Failures:
> [ERROR]   TestMergeContent.testDefragmentMultipleMingledSegments:1028 
> FlowFile content differs from input at byte 0 with input having value 65 and 
> FlowFile having value 78
> {code}
> *Steps to reproduce the failure:*
>  # Run the following command in nifi:
>  # First, build the module:
> {noformat}
> mvn clean install -pl 
> nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors -DskipTests 
> -Drat.skip -am {noformat}
>  # Then run the test using 
> [NonDex|https://github.com/TestingResearchIllinois/NonDex]
> {noformat}
> 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.TestMergeContent#testDefragmentMultipleMingledSegments{noformat}
> The result will be saved under the module folder in .nondex
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to