kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Degols (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-6032) Unit Tests should be independent of locale settings
Date Mon, 09 Oct 2017 20:54:00 GMT
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)

Mime
View raw message