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

LogSearch Integration creates too many error logs during connection failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server
    • None

    Description

      The Ambari LogSearch integration layer is currently creating too many repeated error log messages in ambari-server.log when a connection attempt fails.

      Hundreds of instances of the following log message:

      2016-04-20 14:57:13,000 ERROR qtp-ambari-client-324 LoggingSearchPropertyProvider - Error occurred while making request to LogSearch service, unable to populate logging properties on this resource 
      

      appear when a connection attempt to the LogSearch service fails.

      This problem can occur when:

      1. The LogSearch service crashes or is unexpectedly brought down
      2. There is a lag time during which a crashed service is still considered to be in the STARTED state, which is the state checked by the LoggingSearchPropertyProvider to determine if a connection should be attempted.
      3. This causes the LogSearch integration code to log many connection attempt failures un-necessarily, since only one instance of this message is necessary.

      The LogSearch integration code should use a static counter to determine how many times a given error log should appear.

      I'm working on a fix for this, and will submit a patch shortly.

      Attachments

        1. AMBARI-16093.patch
          17 kB
          Bob Nettleton

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: