Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9672

Indeterminate Map ordering in TestFetchHBaseRow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.16.0
    • None
    • None

    Description

      The undetermined iteration order of HashMap causes flakiness in class org.apache.nifi.hbase.TestFetchHBaseRow tests
      testFetchSpecificColumnsToContentWithBase64testFetchToAttributesWithBase64ValuestestFetchToAttributesWithStringValuestestFetchToContentWithQualifierAndValueJSON, and testFetchToContentWithStringValues. The problem can be solved by replacing HashMap with LinkedHashMap, which has predictable iteration order.

      One can reproduce the errors as follows:

      1. compile mvn install -DskipTests -pl nifi-nar-bundles/nifi-hbase-bundle/nifi-hbase-processors -am
      2. 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

          Activity

            People

              Unassigned Unassigned
              xinyuwu Xinyu Wu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m