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

Arrays.fill() wrong index in BlockSender.readChecksum() exception handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0, 3.1.2
    • datanode
    • None
    • Reviewed

    Description

      In BlockSender.readChecksum() exception handling part:
      Arrays.fill(buf, checksumOffset, checksumLen, (byte) 0);

      Actually the paramters should be: Arrays.fill(buf, <startIndex>, <endIndex>, value);
      So it should be changed to:
      Arrays.fill(buf, checksumOffset, checksumOffset + checksumLen, (byte) 0);

      Attachments

        1. HADOOP-11719.001.patch
          1.0 kB
          Tao Zhang
        2. HADOOP-11719.002.patch
          1.0 kB
          Mingliang Liu
        3. HADOOP-11719.003.patch
          1 kB
          Mingliang Liu

        Activity

          People

            thinktaocs Tao Zhang
            thinktaocs Tao Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: