Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7285 Erasure Coding Support inside HDFS
  3. HDFS-8190

StripedBlockUtil.getInternalBlockLength may have overflow error

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-7285
    • None
    • None
    • Reviewed

    Description

      Both numStripes and cellSize are int but

      long blkSize = (numStripes - 1) * cellSize;
      

      When the actually block size > Integer.MAX_VALUE, the computation has overflow error.

      Attachments

        1. h8190_20150420.patch
          16 kB
          Tsz-wo Sze
        2. h8190_20150420b.patch
          16 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: