Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In FSNamesystem.gotHeartbeat(..., Object[] xferResults, Object[] deleteList), xferResults initially equals to Object[]
{ null, null}. If there are blocks to be replicated, xferResults[0] and xferResults[1] will be set to a Block[] and DatanodeInfo[][], respectively. The caller of gotHeartbeat will cast these object to the original classes. For example, in NameNode.sendHeartbeat(...),
if (xferResults[0] != null) { assert(deleteList[0] == null); return new BlockCommand((Block[]) xferResults[0], (DatanodeInfo[][]) xferResults[1]); }
The use of deleteList is similar.
Attachments
Attachments
Issue Links
- blocks
-
HADOOP-3201 namenode should be able to retrieve block metadata from a datanode
- Closed