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

Add LOG.isDebugEnabled() guard for some LOG.debug(..)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • None
    • None

    Description

      isDebugEnabled() is optional. But when there are :
      1. lots of concatenating Strings
      2. complicated function calls
      in the arguments, LOG.debug(..) should be guarded with LOG.isDebugEnabled() to avoid unnecessary arguments evaluation and impove performance.

      Attachments

        1. HDFS-7978.003.patch
          16 kB
          Walter Su
        2. HDFS-7978.002.patch
          16 kB
          Walter Su
        3. HDFS-7978.001.patch
          15 kB
          Walter Su

        Issue Links

          Activity

            People

              walter.k.su Walter Su
              walter.k.su Walter Su
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: