[ 
https://issues.apache.org/jira/browse/AMBARI-11520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14565512#comment-14565512
 ] 

Hudson commented on AMBARI-11520:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #2751 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/2751/])
AMBARI-11520 - Alert Provider Does Not Return Results Paginated From An Offset 
(jonathanhurley) (jhurley: 
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c2764be2f12d4ef6c12d6ad73a8d810443e9124d)
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertResourceProvider.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertHistoryResourceProvider.java
* 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertResourceProviderTest.java
* 
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/DefaultProviderModule.java
* 
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertHistoryResourceProviderTest.java


> Alert Provider Does Not Return Results Paginated From An Offset
> ---------------------------------------------------------------
>
>                 Key: AMBARI-11520
>                 URL: https://issues.apache.org/jira/browse/AMBARI-11520
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.1.0
>
>         Attachments: AMBARI-11520.patch
>
>
> When requesting the current alerts for a cluster, the following URL returns 
> no results even if there are alerts which would match the pagination criteria:
> {{api/v1/clusters/c1/alerts?fields=*&Alert/state.in(CRITICAL,WARNING)&Alert/maintenance_state.in(OFF)&from=10&page_size=10}}
> However, the following URL does return alerts:
> {{api/v1/clusters/c1/alerts?fields=*&Alert/state.in(CRITICAL,WARNING)&Alert/maintenance_state.in(OFF)&page_size=10}}
> The backend DAO is correctly processing the predicate into a JPA predicate, 
> however the result set is being trimmed in memory before being returned from 
> the query.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to