[ https://issues.apache.org/jira/browse/SPARK-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jungtaek Lim reassigned SPARK-33347: ------------------------------------ Assignee: Yang Jie > 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 > > > {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