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

A bug causes OutOfIndex error in BlockListAsLongs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      An obvious bug in LongsDecoder.getBlockListAsLongs(), the size of var longs is +2 to the size of values, but the for-loop accesses values using longs index. This will cause OutOfIndex.

      Attachments

        1. HDFS-10569.001.patch
          0.8 kB
          Weiwei Yang
        2. HDFS-10569.002.patch
          3 kB
          Weiwei Yang
        3. HDFS-10569.003.patch
          3 kB
          Weiwei Yang
        4. HDFS-10569.004.patch
          3 kB
          Weiwei Yang

        Issue Links

          Activity

            People

              cheersyang Weiwei Yang
              cheersyang Weiwei Yang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: