commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Whitcomb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-523) HdfsFileObject equals method returns true for the same path on different hosts
Date Wed, 17 Dec 2014 18:42:14 GMT

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

Roger Whitcomb commented on VFS-523:
------------------------------------

I've just now (sorry for the LONG delay) tested head revs (with the "unify-hdfs-equals.patch")
in our application and everything seems to be working as expected.  I guess I'm still a little
skeptical that this approach is solid, though, since (I think) we're relying on the caching
mechanism in order to always get the same object so the default Object.equals works right.
 Although, for the moment I don't see any problems in actual operation.  

> HdfsFileObject equals method returns true for the same path on different hosts
> ------------------------------------------------------------------------------
>
>                 Key: VFS-523
>                 URL: https://issues.apache.org/jira/browse/VFS-523
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows 7
>            Reporter: Roger Whitcomb
>            Assignee: Bernd Eckenfels
>            Priority: Minor
>              Labels: hdfs
>             Fix For: 2.1
>
>         Attachments: hdfsequal.diff, unify-hdfs-equals.patch
>
>
> If I construct two HdfsFileObject referring to the same path (for instance, "/") but
on different hosts, the "equals" method will consider them equal (and the "hashCode" method
will give the same results for both) even though they clearly refer to different files since
they are on different hosts.
> These two methods should also factor in the HdfsFileSystem to the equation.



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

Mime
View raw message