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

listOpenFiles() should throw InvalidPathException in case of invalid paths

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.1, 3.4.0
    • 3.3.1, 3.4.0
    • namanode
    • None
    • Reviewed

    Description

      We don't verify the validation of param path in listOpenFiles(). The admin might accidentally passe a path with schema and find there is no open files while there actually are open files under the path. 

      I think we can throw an InvalidPathException to remind the caller. 

      Attachments

        1. HDFS-15338.001.patch
          3 kB
          Jinglun
        2. HDFS-15338.002.patch
          3 kB
          Jinglun
        3. HDFS-15338.003.patch
          4 kB
          Jinglun
        4. HDFS-15338.004.patch
          4 kB
          Jinglun
        5. HDFS-15338.005.patch
          5 kB
          Jinglun

        Activity

          People

            LiJinglun Jinglun
            LiJinglun Jinglun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: