Shen Yinjie created HDFS-14240: ---------------------------------- Summary: blockReport test in NNThroughputBenchmark throws ArrayIndexOutOfBoundsException Key: HDFS-14240 URL: https://issues.apache.org/jira/browse/HDFS-14240 Project: Hadoop HDFS Issue Type: Bug Reporter: Shen Yinjie
When I run a blockReport test with NNThroughputBenchmark, BlockReportStats.addBlocks() throws ArrayIndexOutOfBoundsException. digging the code: {code}for(DatanodeInfo dnInfo : loc.getLocations()) { int dnIdx = dnInfo.getXferPort() - 1; datanodes[dnIdx].addBlock(loc.getBlock().getLocalBlock());\{code} problem is here:array datanodes's length is determined by args as "-datanodes" or "-threads" ,but dnIdx = dnInfo.getXferPort() is a random port. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org