Details
Description
DatanodeID#getXferAddr is a dynamically generated string. This string is repeatedly generated for the hash code, equality, comparisons, and stringification. Every DN->NN RPC method calls DatanodeManager#getDatanode to validate if the node is registered, which involves a call to getXferAddr.
The dynamic computation generates unnecessary trash that puts unnecessary pressure on the GC.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-7433 Optimize performance of DatanodeManager's node map
- Resolved