[
https://issues.apache.org/jira/browse/SPARK-12887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-12887:
------------------------------------
Assignee: Andrew Or (was: Apache Spark)
> Do not expose var's in TaskMetrics
> ----------------------------------
>
> Key: SPARK-12887
> URL: https://issues.apache.org/jira/browse/SPARK-12887
> Project: Spark
> Issue Type: Sub-task
> Components: Spark Core
> Reporter: Andrew Or
> Assignee: Andrew Or
>
> TaskMetrics has a bunch of var's, some are fully public, some are
> private[spark]. This is bad coding style that makes it easy to accidentally
> overwrite previously set metrics. This has happened a few times in the past
> and caused bugs that were difficult to debug.
> Instead, we should have get-or-create semantics, which are more readily
> understandable. This makes sense in the case of TaskMetrics because these are
> just aggregated metrics that we want to collect throughout the task, so it
> doesn't matter *who*'s incrementing them.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]