Tom Beerbower created AMBARI-2553:
-------------------------------------

             Summary: Delay between service tab opening and displaying actual 
states of "Stop"/"Start" buttons
                 Key: AMBARI-2553
                 URL: https://issues.apache.org/jira/browse/AMBARI-2553
             Project: Ambari
          Issue Type: Bug
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower


Sometimes, there are displayed not correct status for "Start"/"Stop" buttons 
during 5-7 seconds after service tab opening.
This bug was reproduced on SUSE-11 and RHEL-6.3 (HDP-1.3.0).

This is happening due to long time of getting "background operations" data 
(huge array of data). We need this data to determine status of "service 
buttons" (Start/Stop/SmokeTest). Currently we  have no opportunity to get from 
API only 10 last requests, we are receiving all requests, in some cases it`s 
huge array of data.

Now we are using this request:
{noformat}
/api/v1/clusters/cl1/requests?fields=tasks/*
returns all requests with any statuses
{noformat}

If we try this one, result is the same: 
{noformat}
api/v1/clusters/cl1/requests?Requests/request_status.in(COMPLETED,IN_PROGRESS,FAILED)&fields=tasks/*
returns all requests with any statuses
{noformat}

We need an API to return only last 10 requests, not all.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to