You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Xinyu Wu (Jira)" <ji...@apache.org> on 2022/02/10 17:41:00 UTC
[jira] [Updated] (NIFI-9672) indeterminate Map ordering in TestFetchHBaseRow
[ https://issues.apache.org/jira/browse/NIFI-9672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xinyu Wu updated NIFI-9672:
---------------------------
Summary: indeterminate Map ordering in TestFetchHBaseRow (was: TestFetchHBaseRow is flaky)
> 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
>
> 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)