[
https://issues.apache.org/jira/browse/YARN-12062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiaoqiao He resolved YARN-12062.
--------------------------------
Fix Version/s: 3.6.0
Hadoop Flags: Reviewed
Resolution: Fixed
> Remove redundant continue statements in Resources methods
> ---------------------------------------------------------
>
> Key: YARN-12062
> URL: https://issues.apache.org/jira/browse/YARN-12062
> Project: Hadoop YARN
> Issue Type: Improvement
> Reporter: Xie YiFan
> Assignee: Xie YiFan
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.6.0
>
>
> Several methods in {{Resources.java}} use a {{continue}} as the final
> statement in a {{ResourceNotFoundException}} catch block. Since execution
> naturally proceeds to the next loop iteration when the catch block ends,
> these statements are redundant.
> Remove the redundant {{continue}} statements from {{{}addTo{}}},
> {{{}subtractFrom{}}}, {{{}fitsIn{}}}, {{{}componentwiseMin{}}}, and
> {{{}componentwiseMax{}}}. Keep the existing warning logs and preserve
> behavior.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]