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

TransformersTest fails when building under different locales

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • Extensions, Tools and Build
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment