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

NameNode getListing should use FileStatus instead of HdfsFileStatus

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • namenode
    • None
    • Incompatible change

    Description

      The public listStatus APIs in FileSystem and DistributedFileSystem expose FileStatus instead of HdfsFileStatus. Therefore it is a waste to create the more expensive HdfsFileStatus objects on NameNode.

      It should be a simple change similar to HDFS-11641. Marking incompatible because wire protocol is incompatible. Not sure what downstream apps are affected by this incompatibility. Maybe those directly using curl, or writing their own HDFS client.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zhz Zhe Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: