Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7926

Copy and paste errors in log messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0
    • None
    • None

    Description

      We found that there are some possible copy and paste errors in the log messages, and we think it may cause some confusion when operators are reading the log messages.

       

      The problem is found in the following two methods:

      org.apache.hadoop.yarn.server.router.webapp.FederationInterceptorREST.createNewApplication() 

      and
      org.apache.hadoop.yarn.server.router.clientrm.FederationClientInterceptor.getNewApplication()

      These are two very similar methods (possibly code clones) in different classes.

      The log messages in both methods are:

      LOG.warn("Unable to create a new ApplicationId in SubCluster " …);

      LOG.debug(“getNewApplication try # + … );

      Since one method is getting new application and one method is creating new application, we believe that the log messages are incorrectly copied and should be changed.

      Please let us know if there is anything that we can further provide you with fixing the problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lzh3636 Zhenhao Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: