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

TransformersTest fails when building under different locales

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: Extensions, Tools and Build
    • Labels:
      None

      Description

      Running a build with the following

      mvn clean install -Dmaven.surefire.arguments="-Duser.language=FR -Duser.region=fr"
      

      results in failures with the TransformersTest for presumably similar reasons to NIFI-3483.

      Tests run: 14, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 5.314 sec <<< FAILURE! - in org.apache.nifi.schemaregistry.processors.TransformersTest
      [5] input_csv/decimal_logicalType.txt,input_avro/decimal_logicalType_valid_scale_with_no_default.txt,expected_ouput_csv/decimal_logicalType.txt (testCSVRoundtrip)(org.apache.nifi.schemaregistry.processors.TransformersTest)  Time elapsed: 0.762 sec  <<< ERROR!
      java.lang.NumberFormatException: null
      	at java.math.BigDecimal.<init>(BigDecimal.java:494)
      	at java.math.BigDecimal.<init>(BigDecimal.java:383)
      	at java.math.BigDecimal.<init>(BigDecimal.java:806)
      	at org.apache.nifi.schemaregistry.processors.CSVUtils.write(CSVUtils.java:161)
      	at org.apache.nifi.schemaregistry.processors.TransformersTest.testCSVRoundtrip(TransformersTest.java:149)
      
      [6] input_csv/decimal_logicalType.txt,input_avro/decimal_logicalType_invalid_scale_with_default.txt,expected_ouput_csv/decimal_logicalType_invalid_scale.txt (testCSVRoundtrip)(org.apache.nifi.schemaregistry.processors.TransformersTest)  Time elapsed: 0 sec  <<< ERROR!
      java.lang.NumberFormatException: null
      	at java.math.BigDecimal.<init>(BigDecimal.java:494)
      	at java.math.BigDecimal.<init>(BigDecimal.java:383)
      	at java.math.BigDecimal.<init>(BigDecimal.java:806)
      	at org.apache.nifi.schemaregistry.processors.CSVUtils.write(CSVUtils.java:161)
      	at org.apache.nifi.schemaregistry.processors.TransformersTest.testCSVRoundtrip(TransformersTest.java:149)
      
      [7] input_csv/decimal_logicalType_missing_value.txt,input_avro/decimal_logicalType_valid_scale_with_default.txt,expected_ouput_csv/decimal_logicalType_valid_scale_with_default.txt (testCSVRoundtrip)(org.apache.nifi.schemaregistry.processors.TransformersTest)  Time elapsed: 0 sec  <<< ERROR!
      java.lang.NumberFormatException: null
      	at java.math.BigDecimal.<init>(BigDecimal.java:494)
      	at java.math.BigDecimal.<init>(BigDecimal.java:383)
      	at java.math.BigDecimal.<init>(BigDecimal.java:806)
      	at org.apache.nifi.schemaregistry.processors.CSVUtils.write(CSVUtils.java:161)
      	at org.apache.nifi.schemaregistry.processors.TransformersTest.testCSVRoundtrip(TransformersTest.java:149)
      
      
      Results :
      
      
      Tests in error:
        TransformersTest.testCSVRoundtrip:149 » NumberFormat
        TransformersTest.testCSVRoundtrip:149 » NumberFormat
        TransformersTest.testCSVRoundtrip:149 » NumberFormat
      
      
      Tests run: 14, Failures: 0, Errors: 3, Skipped: 0
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pvillard Pierre Villard
                Reporter:
                aldrin Aldrin Piri
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: