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

DatanodeID generates excessive garbage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha, 3.0.0-alpha1
    • 2.7.0
    • namenode
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: