Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
There are two potential bugs that make the NNThroughputBenchmark$BlockReportStats send empty block reports.
- In NNThroughputBenchmark$BlockReportStats#formBlockReport(), the blockReportList is always BlockListAsLongs.EMPTY. We should construct the block report list by encoding generated blocks in test.
- TinyDatanode#blocks is an empty ArrayList with initial capacity. In TinyDatanode#addBlock() first statement, the if(nrBlocks == blocks.size()) { will always be true. We should either fill the blocks with dummy report in TinyDatanode() constructor, or use initial capacity instead of blocks.size() in the above if statement (we should replace ArrayList#set with ArrayList#add as well).
Attachments
Attachments
Issue Links
- is broken by
-
HDFS-7435 PB encoding of block reports is very inefficient
- Closed