You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Gilles Degols (JIRA)" <ji...@apache.org> on 2017/10/09 20:54:00 UTC
[jira] [Created] (KAFKA-6032) Unit Tests should be independent of
locale settings
Gilles Degols created KAFKA-6032:
------------------------------------
Summary: 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
Affects Versions: 0.11.0.0
Environment: Centos 7, Windows 10
Locale = "fr_BE.UTF-8"
Reporter: Gilles Degols
Assignee: Gilles Degols
Priority: Minor
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)