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

A bug causes OutOfIndex error in BlockListAsLongs

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment