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

Ambari Web Client Makes Request For All Alerts On Specific Alert Page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • ambari-web
    • None

    Description

      When you click on an alert in order to see all instances of that alert, the web client makes the following request:

      /api/v1/clusters/perf400/alerts?fields=*&(Alert/definition_id=9|Alert/state.in(CRITICAL,WARNING))&_=1426189130461

      Here it's asking for all alert instances for definition 9 OR all alerts in the system that are CRITICAL/WARNING.

      I clicked on the alert for definition 9, and I only expect to see alerts for that definition. The 2nd part of the query (the OR) gets all alert instances. In a large cluster, this is a performance problem.

      Attachments

        1. AMBARI-10062.patch
          28 kB
          Oleg Nechiporenko
        2. AMBARI-10062_branch-2.0.0.patch
          27 kB
          Oleg Nechiporenko

        Activity

          People

            onechiporenko Oleg Nechiporenko
            onechiporenko Oleg Nechiporenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: