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

Improve Logging in FSNamesystem by adding parameterized logging

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.0
    • Component/s: hdfs
    • Labels:
      None

      Description

      Remove several instances of check for debug log enabled in FSNamesystem one such example is as:

      if (LOG.isDebugEnabled()) {
              LOG.debug("list corrupt file blocks returned: " + count);
      }
      

      This can be replaced by using parameterized logging.

        Attachments

        1. HDFS-14371.001.patch
          4 kB
          Shweta
        2. HDFS-14371.002.patch
          3 kB
          Shweta

          Activity

            People

            • Assignee:
              shwetayakkali Shweta
              Reporter:
              shwetayakkali Shweta
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: