[ https://issues.apache.org/jira/browse/YARN-9578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16857544#comment-16857544 ]
Weiwei Yang commented on YARN-9578: ----------------------------------- Hi [~Tao Yang] For limit option, I was referring to this code snippet {code} allocations = curAllocations.stream().map(e -> e.filterAllocationAttempts(requestPriorities, allocationRequestIds)) .filter(e -> !e.getAllocationAttempts().isEmpty()) .collect(Collectors.toList()); {code} Can we add a limit here instead of using a subList later? Thanks > 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: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org