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

RBF: Reuse ugi string in ConnectionPoolID

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The connectionPoolID Hash Code and equals contains ugi.toString(), These methods are used as part of getConnection() in ConnectionManager as part of every call.

      The ugi.toString() eats up considerable amount of time, the Hash Calculation itself is ~10 percent of the total time of the call. And even more for the equals method.

        Attachments

        1. UGI_AFTER-01.PNG
          10 kB
          Ayush Saxena
        2. UGI_BEFORE-01.PNG
          14 kB
          Ayush Saxena
        3. HDFS-15094-02.patch
          2 kB
          Ayush Saxena
        4. HDFS-15094-01.patch
          2 kB
          Ayush Saxena

          Activity

            People

            • Assignee:
              ayushtkn Ayush Saxena
              Reporter:
              ayushtkn Ayush Saxena
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: