[ https://issues.apache.org/jira/browse/AMBARI-10062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14363166#comment-14363166 ]
Hudson commented on AMBARI-10062: --------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit #2043 (See [https://builds.apache.org/job/Ambari-trunk-Commit/2043/]) AMBARI-10062. Ambari Web Client Makes Request For All Alerts On Specific Alert Page (onechiporenko) (onechiporenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=72b40b7b70daf5ad42e32aef4f94f08cddb35403) * ambari-web/app/templates/main/alerts/definition_details.hbs * ambari-web/app/mixins/common/table_server_mixin.js * ambari-web/app/views/main/host.js * ambari-web/app/utils/ajax/ajax.js * ambari-web/test/controllers/main/alert_definitions_controller_test.js * ambari-web/app/styles/application.less * ambari-web/app/styles/common.less * ambari-web/app/templates/main/host.hbs * ambari-web/app/views/main/alerts/definition_details_view.js * ambari-web/app/controllers/global/update_controller.js * ambari-web/app/templates/common/modal_popups/alerts_popup.hbs * ambari-web/app/controllers/main/alert_definitions_controller.js * ambari-web/app/controllers/main/alerts/alert_instances_controller.js * ambari-web/app/utils/ember_reopen.js * ambari-web/test/controllers/main/alerts/alert_instances_controller_test.js * ambari-web/app/templates/application.hbs * ambari-web/app/models/service.js > Ambari Web Client Makes Request For All Alerts On Specific Alert Page > --------------------------------------------------------------------- > > Key: AMBARI-10062 > URL: https://issues.apache.org/jira/browse/AMBARI-10062 > Project: Ambari > Issue Type: Bug > Components: ambari-web > Affects Versions: 2.0.0 > Reporter: Oleg Nechiporenko > Assignee: Oleg Nechiporenko > Fix For: 2.0.0 > > Attachments: AMBARI-10062.patch, AMBARI-10062_branch-2.0.0.patch > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)