[ 
https://issues.apache.org/jira/browse/HADOOP-12251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14633441#comment-14633441
 ] 

Steve Loughran commented on HADOOP-12251:
-----------------------------------------

HADOOP-6796 covered {{FileStatus.hashCode()}} NPE-ing if the path was null at 
the time of invocation. This issue doesn't look at that, only the adverse 
consequences of changing the hash code.

As FileStatus has to be writeable, the path value does have to be mutable. 
Which means it's probably impossible to fix this problem. 

Closing as a WONTFIX; leaving the issue in JIRA for people to find

> FileStatus.hashCode is derived from mutable path field
> ------------------------------------------------------
>
>                 Key: HADOOP-12251
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12251
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.7.1
>            Reporter: Steve Loughran
>            Priority: Minor
>             Fix For: 2.7.2
>
>
> The {{Filestatus.hashCode()}} operation uses the hash code from its path 
> value. If the path is changed after insertion into any kind of hashmap, it 
> won't be found.



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

Reply via email to