Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7457

DatanodeID generates excessive garbage

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha, 3.0.0-alpha1
    • Fix Version/s: 2.7.0
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      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

        1. HDFS-7457.patch
          3 kB
          Daryn Sharp

          Issue Links

            Activity

              People

              • Assignee:
                daryn Daryn Sharp
                Reporter:
                daryn Daryn Sharp
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: