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

blockReport test in NNThroughputBenchmark throws ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      _emphasized text_When I run a blockReport test with NNThroughputBenchmark, BlockReportStats.addBlocks() throws ArrayIndexOutOfBoundsException.

      digging the code:

      for(DatanodeInfo dnInfo : loc.getLocations())
      
      { int dnIdx = dnInfo.getXferPort() - 1; datanodes[dnIdx].addBlock(loc.getBlock().getLocalBlock());

       

      problem is here:array datanodes's length is determined by args as "-datanodes" or "-threads" ,but dnIdx = dnInfo.getXferPort() is a random port.

      Attachments

        1. screenshot-1.png
          53 kB
          Shen Yinjie

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shenyinjie Shen Yinjie
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: