[ 
https://issues.apache.org/jira/browse/FLINK-16467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17054644#comment-17054644
 ] 

Xintong Song commented on FLINK-16467:
--------------------------------------

[~michael-o] Thanks for reporting this issue.

I think this is probably due to the locale issue. We use {{String.format}} for 
generating the human readable string for {{MemorySize}}, and I find this 
[post|https://stackoverflow.com/questions/5236056/force-point-as-decimal-separator-in-java]
 that describes the problem and how to fix it.

> MemorySizeTest#testToHumanReadableString() is not portable
> ----------------------------------------------------------
>
>                 Key: FLINK-16467
>                 URL: https://issues.apache.org/jira/browse/FLINK-16467
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Core
>    Affects Versions: 1.10.0
>         Environment: $ mvn -v
> Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 
> 2018-06-17T20:33:14+02:00)
> Maven home: /usr/local/apache-maven-3.5.4
> Java version: 1.8.0_242, vendor: Oracle Corporation, runtime: 
> /usr/local/openjdk8/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "freebsd", version: "12.1-stable", arch: "amd64", family: "unix"
>            Reporter: Michael Osipov
>            Priority: Major
>
> Runing this test from master gives me:
> {noformat}
> [ERROR] Failures:
> [ERROR]   MemorySizeTest.testToHumanReadableString:242
> Expected: is "1.001kb (1025 bytes)"
>      but: was "1,001kb (1025 bytes)"
> [INFO]
> {noformat}
> The test is not locale-portable.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to