ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-11520) Alert Provider Does Not Return Results Paginated From An Offset
Date Fri, 29 May 2015 14:37:18 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-11520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Hurley updated AMBARI-11520:
-------------------------------------
    Attachment: AMBARI-11520.patch

> 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)

Mime
View raw message