Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-523

HdfsFileObject equals method returns true for the same path on different hosts

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Labels:
    • Environment:

      Windows 7

      Description

      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.

        Attachments

        1. unify-hdfs-equals.patch
          2 kB
          Bernd Eckenfels
        2. hdfsequal.diff
          1.0 kB
          Roger Whitcomb

          Issue Links

            Activity

              People

              • Assignee:
                b.eckenfels Bernd Eckenfels
                Reporter:
                rwhitcomb Roger Whitcomb
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: