[
https://issues.apache.org/jira/browse/NIFI-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15203753#comment-15203753
]
ASF subversion and git services commented on NIFI-1656:
-------------------------------------------------------
Commit 9cde92da164393c50d74c4cc4c0d6bf82c975e9c in nifi's branch
refs/heads/master from trkurc
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=9cde92d ]
NIFI-1656 Added locale support to ConvertAvroSchema and fixed locale problems
in unit tests
Reviewed by Joe Witt ([email protected]). This closes #292
> Kite processor scanner usage presumes a particular locale
> ---------------------------------------------------------
>
> Key: NIFI-1656
> URL: https://issues.apache.org/jira/browse/NIFI-1656
> Project: Apache NiFi
> Issue Type: Bug
> Environment: Windows 7 pro, maven 3.3.9, Java 8
> Reporter: Pierre Villard
> Assignee: Tony Kurc
>
> This is a JIRA which spawned from the discussion/review efforts folks did on
> NIFI-1651.
> Sorry for the delay... I am on a different computer than usual and forgot to
> check the git property. Did a full clone again (so slow with airport wifi...)
> and checked the schema (looks OK to me). The git property solved most of the
> issues, but some are remaining:
> Running org.apache.nifi.processors.kite.TestAvroRecordConverter
> Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.377 sec <<<
> FAILURE! - in org.apache.nifi.processors.kite.TestAvroRecordConverter
> testDefaultConversion(org.apache.nifi.processors.kite.TestAvroRecordConverter)
> Time elapsed: 0.011 sec <<< ERROR!
> org.apache.nifi.processors.kite.AvroRecordConverter$AvroConversionException:
> Cannot convert 5.5 to double
> at
> org.apache.nifi.processors.kite.AvroRecordConverter.convertData(AvroRecordConverter.java:246)
> at
> org.apache.nifi.processors.kite.AvroRecordConverter.convert(AvroRecordConverter.java:170)
> at
> org.apache.nifi.processors.kite.TestAvroRecordConverter.testDefaultConversion(TestAvroRecordConverter.java:98)
> Running org.apache.nifi.processors.kite.TestConfigurationProperty
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.849 sec -
> in org.apache.nifi.processors.kite.TestConfigurationProperty
> Running org.apache.nifi.processors.kite.TestConvertAvroSchema
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.22 sec <<<
> FAILURE! - in org.apache.nifi.processors.kite.TestConvertAvroSchema
> testBasicConversion(org.apache.nifi.processors.kite.TestConvertAvroSchema)
> Time elapsed: 0.21 sec <<< FAILURE!
> java.lang.AssertionError: Should convert 2 rows expected:<2> but was:<1>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:834)
> at org.junit.Assert.assertEquals(Assert.java:645)
> at
> org.apache.nifi.processors.kite.TestConvertAvroSchema.testBasicConversion(TestConvertAvroSchema.java:78)
> Just for the record, the error is because of my local env. This is fixed by
> setting the locale to US on the scanner:
> scanner.useLocale(java.util.Locale.US);
> I don't know if there is a way to set this at a global scale.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)