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

Marcelo Vanzin resolved SPARK-8294.
-----------------------------------
    Resolution: Won't Fix

I don't think it's helpful to keep this as a task. We generally do minor clean 
ups as we fix the code / add features, but a wholesale refactoring of this code 
is unlikely to happen.

> Break down large methods in YARN code
> -------------------------------------
>
>                 Key: SPARK-8294
>                 URL: https://issues.apache.org/jira/browse/SPARK-8294
>             Project: Spark
>          Issue Type: Sub-task
>          Components: YARN
>    Affects Versions: 1.4.0
>            Reporter: Andrew Or
>            Priority: Major
>
> What large methods am I talking about?
> Client#prepareLocalResources ~ 170 lines
> ExecutorRunnable#prepareCommand ~ 100 lines
> Client#setupLaunchEnv ~ 100 lines
> ... many others that hover around 80 - 90 lines
> There are several things wrong with this. First, it's difficult to follow / 
> review the code. Second, it's difficult to test it at a fine-granularity. In 
> the past we as a community has been reluctant to add new regression tests for 
> YARN changes. This stems from the fact that it is difficult to write tests, 
> and the cost is that we can't really ensure the correctness of the code 
> easily.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to