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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.1
    • 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 Lee Whitcomb

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: