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

RBF: Reuse ugi string in ConnectionPoolID

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None
    • None
    • 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. HDFS-15094-01.patch
          2 kB
          Ayush Saxena
        2. HDFS-15094-02.patch
          2 kB
          Ayush Saxena
        3. UGI_AFTER-01.PNG
          10 kB
          Ayush Saxena
        4. UGI_BEFORE-01.PNG
          14 kB
          Ayush Saxena

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: