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
Attachments
Issue Links
- is duplicated by
-
HDFS-16269 [Fix] Improve NNThroughputBenchmark#blockReport operation
- Resolved