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

StringBuilder created and appended even if logging is disabled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.4
    • Fix Version/s: 2.9.0, 3.0.0-alpha1
    • Component/s: namenode
    • Labels:
      None

      Description

      In BlockManager.addToInvalidates the StringBuilder is appended to during the delete even if logging isn't active.

      Could avoid allocating the StringBuilder as well, but not sure if it is really worth it to add null handling in the code.

        Attachments

        1. HDFS-10620.001.patch
          0.9 kB
          Staffan Friberg
        2. HDFS-10620.002.patch
          1 kB
          Akira Ajisaka
        3. HDFS-10620-branch-2.01.patch
          1 kB
          Akira Ajisaka

          Activity

            People

            • Assignee:
              sfriberg Staffan Friberg
              Reporter:
              sfriberg Staffan Friberg
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: