hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wanqiang Ji (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-9453) Clean up code long if-else chain in ApplicationCLI#run
Date Sun, 14 Apr 2019 07:13:00 GMT

     [ https://issues.apache.org/jira/browse/YARN-9453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wanqiang Ji updated YARN-9453:
------------------------------
    Attachment: YARN-9453.002.patch

> Clean up code long if-else chain in ApplicationCLI#run
> ------------------------------------------------------
>
>                 Key: YARN-9453
>                 URL: https://issues.apache.org/jira/browse/YARN-9453
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Szilard Nemeth
>            Assignee: Wanqiang Ji
>            Priority: Major
>              Labels: newbie
>         Attachments: YARN-9453.001.patch, YARN-9453.002.patch
>
>
> org.apache.hadoop.yarn.client.cli.ApplicationCLI#run is 630 lines long, contains a long
if-else chain and many many conditions. 
> As a start, the bodies of the conditions could be extracted to methods and a more clean
solution could be introduced to parse the argument values.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message