Writable DatanodeID
-------------------
Key: HADOOP-396
URL: http://issues.apache.org/jira/browse/HADOOP-396
Project: Hadoop
Issue Type: Improvement
Components: dfs
Affects Versions: 0.4.0
Reporter: Konstantin Shvachko
Assigned To: Konstantin Shvachko
Fix For: 0.5.0
Attachments: DatanodeID.patch
This patch implements Owen's comments to HADOOP-321. Namely,
- Namenode.sendHeartbeat does not create a throwaway DatanodeDescriptor.
DatanodeID is sufficient in this case.
- DatanodeID is made Writable, and it also implements equals() and hashCode().
- DatanodeInfo is updated to call base class methods in its implementation of
Writable interface.
- I changed the way strings are written/read using UTF8.writeString and
UTF8.readString.
- Some comments are updated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira