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

Document getLocatedBlocks(String src, long start) of DFSClient only return partial blocks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • documentation
    • None
    • Reviewed

    Description

       
       

      Intuitively, the method getLocatedBlocks(String src, long start) of DFSClient will return all blocks after offset ‘start’. But actually it uses dfsClientConf.getPrefetchSize() as the length and only return part of blocks. I feel it's error-prone and open this Jira for discussion.

       

      Attachments

        1. HDFS-15384.001.patch
          4 kB
          Yang Yun
        2. HDFS-15384.002.patch
          1.0 kB
          Yang Yun
        3. HDFS-15384.003.patch
          1 kB
          Yang Yun
        4. HDFS-15384.004.patch
          1 kB
          Yang Yun

        Activity

          People

            hadoop_yangyun Yang Yun
            hadoop_yangyun Yang Yun
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: