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

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

Commit b3f2d95092f68e0077296a9bc9c7536f615769e1 in nifi's branch 
refs/heads/main from Priyanka Awatramani
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=b3f2d95092 ]

NIFI-10928 Updated MockFlowFile with LinkedHashMap for attributes

- Updated TestAttributesToCSV with LinkedHashMap for deterministic test behavior
- Updated TestHttpFlowFileServerProtocol with adjusted checksums to match 
expectations from LinkedHashMap changes

This closes #6748

Signed-off-by: David Handermann <[email protected]>


> TestAttributesToCSV Test Failures on NonDex
> -------------------------------------------
>
>                 Key: NIFI-10928
>                 URL: https://issues.apache.org/jira/browse/NIFI-10928
>             Project: Apache NiFi
>          Issue Type: Bug
>         Environment: openjdk version "11.0.16.1";
> 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);
> Apache Maven 3.6.3;
>            Reporter: Priyanka Awatramani
>            Assignee: Priyanka Awatramani
>            Priority: Trivial
>         Attachments: image-2022-12-01-21-20-58-128.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The test 
> *org.apache.nifi.processors.standard.TestAttributesToCSV#testSchemaWithCoreAttribuesToAttribute,
>  org.apache.nifi.processors.standard.TestAttributesToCSV#testSchemaToContent, 
> org.apache.nifi.processors.standard.TestAttributesToCSV#testSchemaWithCoreAttribuesToContent,*
>  and 
> *org.apache.nifi.processors.standard.TestAttributesToCSV#testSchemaToAttribute*
>  passed using normal maven-test, but showed Non-deterministic behavior under 
> NonDex([https://github.com/TestingResearchIllinois/NonDex)] and thus failed. 
> Some of the error messages are:
> !image-2022-12-01-21-20-58-128.png!
> and after some probing, I found the output from the test is not deterministic 
> as the order of the attributes changes due to the use of a HashMap.
>  
> Steps to reproduce the failure:
> Install Nondex([https://github.com/TestingResearchIllinois/NonDex)] in the 
> environment. 
> Then cd to nifi repository, and run the following:
> {code:java}
> mvn install -pl 
> nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors -am 
> -DskipTests  
> mvn -pl nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors 
> edu.illinois:nondex-maven-plugin:2.1:nondex 
> -Dtest=org.apache.nifi.processors.standard.TestAttributesToCSV#testSchemaToAttribute
> mvn -pl nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors 
> edu.illinois:nondex-maven-plugin:2.1:nondex 
> -Dtest=org.apache.nifi.processors.standard.TestAttributesToCSV#testSchemaToAttribute{code}



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

Reply via email to