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

Tao Yang commented on YARN-9578:
--------------------------------

{quote}
Can we add a limit here instead of using a subList later?
{quote}
I'm afraid not, stream of app activities is ordered by time in queue, but what 
we need is latest ones.
Another way is to reverse the stream at first, which I think it's more 
complicated. Thoughts?

> Add limit/actions/summarize options for app activities REST API
> ---------------------------------------------------------------
>
>                 Key: YARN-9578
>                 URL: https://issues.apache.org/jira/browse/YARN-9578
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: capacityscheduler
>            Reporter: Tao Yang
>            Assignee: Tao Yang
>            Priority: Major
>         Attachments: YARN-9578.001.patch, YARN-9578.002.patch, 
> YARN-9578.003.patch, YARN-9578.004.patch, YARN-9578.005.patch
>
>
> Currently all completed activities of specified application in cache will be 
> returned forĀ application activities REST API. Most results may be redundant 
> in some scenarios which only need a few latest results, for example, perhaps 
> only one result is needed to be shown on UI for debugging.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to