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

Javadoc for FileStatus.getLen() is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 0.20.2, 1.0.2
    • None
    • documentation, hdfs-client
    • None

    Description

        /* 
         * @return the length of this file, in blocks
         */
        public long getLen() {
          return length;
        }
      

      in reality it return a length not in blocks but in bytes.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alesinskyy@googlemail.com Oleksandr Alesinskyy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: