Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5026

getFileStatus and getFileLinkStatus do not properly handle intermediate symlinks in a path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.1.0-beta, 3.0.0-alpha1
    • None
    • None
    • None

    Description

      Imagine a filesystem with the following:

      /dir
      /dir/file
      /dirLink -> /dir
      

      When calling getFileStatus or getFileLinkStatus on /dirLink/file, the returned FileStatus incorrectly has the resolved path of /dir/file. This differs from expectations and the Unix stat(1) command, which would return /dirLink/file.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andrew.wang Andrew Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: