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

Jungtaek Lim resolved SPARK-33347.
----------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

Issue resolved by pull request 30251
[https://github.com/apache/spark/pull/30251]

> Clean up useless variables in MutableApplicationInfo
> ----------------------------------------------------
>
>                 Key: SPARK-33347
>                 URL: https://issues.apache.org/jira/browse/SPARK-33347
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 3.1.0
>            Reporter: Yang Jie
>            Assignee: Yang Jie
>            Priority: Major
>             Fix For: 3.1.0
>
>
>  
> {code:java}
> private class MutableApplicationInfo {
>   var id: String = null
>   var name: String = null
>   var coresGranted: Option[Int] = None
>   var maxCores: Option[Int] = None
>   var coresPerExecutor: Option[Int] = None
>   var memoryPerExecutorMB: Option[Int] = None
>   def toView(): ApplicationInfoWrapper = {
>     val apiInfo = ApplicationInfo(id, name, coresGranted, maxCores, 
> coresPerExecutor,
>       memoryPerExecutorMB, Nil)
>     new ApplicationInfoWrapper(apiInfo, List(attempt.toView()))
>   }
> }
> {code}
>  
> coresGranted, maxCores, coresPerExecutor and memoryPerExecutorMB always None 
> and never reassign



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to