Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-7050

Debug logs should be improvement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      I noticed that in Mapreduced code, there are many places to use Log.debug as follows:

      LOG.debug("example " + example.getClass().getName() + "example" );
      

      When the system loglevel set higher than Debug, although the system does not print these levels of logs, but each time will splicing parameters string, affect system performance.

      It should be:

      
      if(LOG.isDebugEnabled()){
      
          LOG.debug("example " + example.getClass().getName() + "example" );
      
      }
      

      Attachments

        1. MAPREDUCE-7050.patch
          104 kB
          Sen Zhao

        Activity

          People

            Unassigned Unassigned
            Sen Zhao Sen Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: