You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Gilles Degols (JIRA)" <ji...@apache.org> on 2017/10/09 21:07:02 UTC
[jira] [Updated] (KAFKA-6032) Unit Tests should be independent of
locale settings
[ https://issues.apache.org/jira/browse/KAFKA-6032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gilles Degols updated KAFKA-6032:
---------------------------------
Component/s: unit tests
> Unit Tests should be independent of locale settings
> ---------------------------------------------------
>
> Key: KAFKA-6032
> URL: https://issues.apache.org/jira/browse/KAFKA-6032
> Project: Kafka
> Issue Type: Bug
> Components: unit tests
> Affects Versions: 0.11.0.0
> Environment: Centos 7, Windows 10
> Locale = "fr_BE.UTF-8"
> Reporter: Gilles Degols
> Assignee: Gilles Degols
> Priority: Minor
> Labels: newbie
>
> If the system has locale settings like "fr_BE.UTF-8", 3 unit tests will fail:
> 1. org.apache.kafka.common.utils.ShellTest > testRunProgramWithErrorReturn
> 2. org.apache.kafka.common.utils.ShellTest > testAttemptToRunNonExistentProgram
> 3. org.apache.kafka.common.utils.UtilsTest > testFormatBytes
> They rely on string comparisons which will not work if the system throws an error in another language, or if the float format is different ("," instead of ".").
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)