hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-8705) BlockStoragePolicySuite uses equalsIgnoreCase for name lookup, won't work in all locales
Date Wed, 01 Jul 2015 11:29:04 GMT
Steve Loughran created HDFS-8705:
------------------------------------

             Summary: BlockStoragePolicySuite uses equalsIgnoreCase for name lookup, won't
work in all locales
                 Key: HDFS-8705
                 URL: https://issues.apache.org/jira/browse/HDFS-8705
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: namenode
    Affects Versions: 2.8.0
            Reporter: Steve Loughran
            Priority: Minor


Looking at {{BlockStoragePolicySuite.getPolicy(name)}}, is using {{equalsIgnoreCase()}} to
find a policy which matches a name.

This will not work in all locales. It must use {{toLowerCase(Locale.ENGLISH).equals(name)}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message