hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill de hOra (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-3785) FileSystem cache should be case-insensitive
Date Sun, 03 Aug 2008 15:55:44 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-3785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bill de hOra updated HADOOP-3785:
---------------------------------

    Attachment: HADOOP-3785.patch

Patch for review. 

The patch lowercases scheme and authority in the ctor so the string op only happens once per
Key and not once per equals/hashcode check. Key and Cache were made default visible to allow
testing. 

> FileSystem cache should be case-insensitive
> -------------------------------------------
>
>                 Key: HADOOP-3785
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3785
>             Project: Hadoop Core
>          Issue Type: Bug
>            Reporter: Doug Cutting
>             Fix For: 0.19.0
>
>         Attachments: HADOOP-3785.patch
>
>
> We cache FileSystem instances based on URI scheme & authority, plus username.  Elsewhere
we compare URI schemes and authorities case-insensitively, but the cache is case-sensitive.
 In particular, the Cache.Key#equals() and Cache.Key#hashCode() should be made case-insensitive.
> This should not be a blocker, since the worst it causes is a few extra FileSystem instances
to be cached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message