Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-20190

LogSearch Integration logs repeated WARN message that should be at DEBUG level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • ambari-server
    • None

    Description

      When the LogSearch Integration layer in Ambari cannot obtain the logsearch logging metadata for a given HostComponent, it logs the following message to ambari-server.log:

      Error occurred while making request to LogSearch service, unable to populate logging properties on this resource

      The problem is that this message is logged too many times at the WARN level, without providing much useful information. In the case of a larger cluster, this message may be logged thousands of times in the ambari-server.log, and was caused by the fact that SmartSense IDs do not exist for LogSearch, since they haven't been added to the separate SmartSense stack definition.

      This issue should be fixed with the following two minor changes:
      1. This message should be logged at the DEBUG level, since it is generally only useful when a particular component's log messages cannot be found.
      2. This message should be modified to include the Host and Component associated with the LogSearch error, to assist in debugging if this situation occurs.

      Attachments

        1. AMBARI-20190.patch
          2 kB
          Bob Nettleton

        Issue Links

          Activity

            People

              rnettleton Bob Nettleton
              rnettleton Bob Nettleton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified