Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
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
Attachments
Issue Links
- links to