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

A bug causes OutOfIndex error in BlockListAsLongs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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.004.patch
          3 kB
          Weiwei Yang
        2. HDFS-10569.003.patch
          3 kB
          Weiwei Yang
        3. HDFS-10569.002.patch
          3 kB
          Weiwei Yang
        4. HDFS-10569.001.patch
          0.8 kB
          Weiwei Yang

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: