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

blockReportInterval is long value but when we take the random value it uses getRandom().nextInt,it is causing frequently BR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.0.0-alpha
    • None
    • datanode

    Description

      blockReportInterval is long value but when we take the random value it uses getRandom().nextInt.

      Due to this, offerService can throw exception as long may get rotated to negative value.
      So, block report may send very frequently.

            if (resetBlockReportTime) {
              lastBlockReport = startTime - DFSUtil.getRandom().nextInt((int)(dnConf.blockReportInterval));
            resetBlockReportTime = false;
      

      Attachments

        1. HDFS-3456.004.patch
          1.0 kB
          Colin McCabe
        2. HDFS-3456.003.patch
          12 kB
          Colin McCabe
        3. HDFS-3456.002.patch
          12 kB
          Colin McCabe
        4. HDFS-3456.001.patch
          2 kB
          Colin McCabe
        5. h3456_20120601.patch
          8 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              brahmareddy Brahma Reddy Battula
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: