You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/02/22 13:08:00 UTC
[jira] [Commented] (NIFI-9672) Indeterminate Map ordering in TestFetchHBaseRow
[ https://issues.apache.org/jira/browse/NIFI-9672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17496074#comment-17496074 ]
ASF subversion and git services commented on NIFI-9672:
-------------------------------------------------------
Commit 22b47ccc7b8af2a432ac46e893388da1afefa611 in nifi's branch refs/heads/main from xinyuwu4
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=22b47cc ]
NIFI-9672: fix flaky tests caused by the use of HashMap.
This closes #5758
Signed-off-by: Mike Thomsen <mt...@apache.org>
> Indeterminate Map ordering in TestFetchHBaseRow
> -----------------------------------------------
>
> Key: NIFI-9672
> URL: https://issues.apache.org/jira/browse/NIFI-9672
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Xinyu Wu
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The undetermined iteration order of {{HashMap}} causes flakiness in class {{org.apache.nifi.hbase.TestFetchHBaseRow}} tests
> {{{}testFetchSpecificColumnsToContentWithBase64{}}}, {{{}testFetchToAttributesWithBase64Values{}}}, {{{}testFetchToAttributesWithStringValues{}}}, {{{}testFetchToContentWithQualifierAndValueJSON{}}}, and {{{}testFetchToContentWithStringValues{}}}. The problem can be solved by replacing {{HashMap}} with {{{}LinkedHashMap{}}}, which has predictable iteration order.
> One can reproduce the errors as follows:
> # compile {{mvn install -DskipTests -pl nifi-nar-bundles/nifi-hbase-bundle/nifi-hbase-processors -am}}
> # run tests with NonDex {{{}mvn -pl nifi-nar-bundles/nifi-hbase-bundle/nifi-hbase-processors edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=org.apache.nifi.hbase.TestFetchHBaseRow{}}}. One can also run the tests separately, by adding the name of the test: {{mvn -pl nifi-nar-bundles/nifi-hbase-bundle/nifi-hbase-processors edu.illinois:nondex-maven-plugin:1.1.2:nondex -Dtest=org.apache.nifi.hbase.TestFetchHBaseRow#testFetchToContentWithQualifierAndValueJSON}}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)