You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2020/11/04 16:32:00 UTC
[jira] [Updated] (SPARK-33347) Clean up useless variables in
MutableApplicationInfo
[ https://issues.apache.org/jira/browse/SPARK-33347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yang Jie updated SPARK-33347:
-----------------------------
Description:
{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 no place to reassign
was:
{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 no place to reassign
> 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
> 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 no place to reassign
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org