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

ProcessReport print invalidatedBlocks should judge debug level at first

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.3.1, 3.4.0
    • namanode
    • None
    • Reviewed

    Description

      In BlockManager#processReport( ) method, we will print invalidated blocks if log level is debug。We always traverse this invalidatedBlocks list without considering the log level。I suggest to give priority to the log level before printing, which can save the time of traversal if log  level is info.

      Attachments

        1. HDFS-16003.001.path
          1 kB
          lei w
        2. HDFS-16003.patch
          1 kB
          lei w

        Activity

          People

            lei w lei w
            lei w lei w
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: