[ 
https://issues.apache.org/jira/browse/HDFS-14240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17427592#comment-17427592
 ] 

JiangHua Zhu commented on HDFS-14240:
-------------------------------------

Sorry, I did not notice that there is already a similar problem.
[~iwasakims] [~RANith] [~shenyinjie], I created a new issue (HDFS-16269) and it 
is already being resolved.


> 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
>            Assignee: Ranith Sardar
>            Priority: Major
>         Attachments: screenshot-1.png
>
>
> _emphasized text_When I run a blockReport test with NNThroughputBenchmark, 
> BlockReportStats.addBlocks() throws ArrayIndexOutOfBoundsException.
> digging the code:
> {code:java}
> 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
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to