[
https://issues.apache.org/jira/browse/AMBARI-10052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14360451#comment-14360451
]
Hudson commented on AMBARI-10052:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #2026 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/2026/])
AMBARI-10052 - Current Alerts Requests Should Honor Predicate Values For
Performance On Large Cluster (jonathanhurley) (jhurley:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=92b13e35764bbb9e7b0d9842e1e7a0bba332e59e)
*
ambari-server/src/main/java/org/apache/ambari/server/controller/AlertCurrentRequest.java
*
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertResourceProvider.java
*
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertCurrentEntity_.java
*
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertResourceProviderTest.java
*
ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertsDAOTest.java
*
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertCurrentEntity.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java
> Current Alerts Requests Should Honor Predicate Values For Performance On
> Large Cluster
> --------------------------------------------------------------------------------------
>
> Key: AMBARI-10052
> URL: https://issues.apache.org/jira/browse/AMBARI-10052
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.0.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Critical
> Fix For: 2.0.0
>
>
> When making a request for current alerts, if you want to restrict by an ID,
> such as the definition ID, it queries against all entities in the table:
> {{api/v1/clusters/perf400/alerts?fields=*&Alert/definition_id=9}}
> This can cause performance issues in large clusters. We should be using a JPA
> predicate here.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)