[
https://issues.apache.org/jira/browse/YARN-8607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16566190#comment-16566190
]
Yeliang Cang commented on YARN-8607:
------------------------------------
No test case needed!
> Incorrect annotation in ApplicationAttemptStateData#getResourceSecondsMap
> -------------------------------------------------------------------------
>
> Key: YARN-8607
> URL: https://issues.apache.org/jira/browse/YARN-8607
> Project: Hadoop YARN
> Issue Type: Bug
> Components: resourcemanager
> Reporter: Yeliang Cang
> Assignee: Yeliang Cang
> Priority: Trivial
> Attachments: YARN-8607.001.patch, YARN-8607.002.patch
>
>
> In ApplicationAttemptStateData.java
> the annotation of getResourceSecondsMap is not correct:
> {code}
> /**
> * Get the aggregated number of resources preempted that the application has
> * allocated times the number of seconds the application has been running.
> *
> * @return map containing the resource name and aggregated preempted
> * resource-seconds
> */
> @Public
> @Unstable
> public abstract Map<String, Long> getResourceSecondsMap();
> {code}
> Should be
> {code}
> /**
> * Get the aggregated number of resources that the application has
> * allocated times the number of seconds the application has been running.
> *
> * @return map containing the resource name and aggregated preempted
> * resource-seconds
> */
> @Public
> @Unstable
> public abstract Map<String, Long> getResourceSecondsMap();
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]