aboutsummaryrefslogtreecommitdiff
path: root/mllib/src/test
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2016-01-19 10:58:51 -0800
committerAndrew Or <andrew@databricks.com>2016-01-19 10:58:51 -0800
commitb122c861cd72b580334a7532f0a52c0439552bdf (patch)
tree9a3c7e9f3b1c190c7914c89e061c7fa15911a846 /mllib/src/test
parente14817b528ccab4b4685b45a95e2325630b5fc53 (diff)
downloadspark-b122c861cd72b580334a7532f0a52c0439552bdf.tar.gz
spark-b122c861cd72b580334a7532f0a52c0439552bdf.tar.bz2
spark-b122c861cd72b580334a7532f0a52c0439552bdf.zip
[SPARK-12887] Do not expose var's in TaskMetrics
This is a step in implementing SPARK-10620, which migrates TaskMetrics to accumulators. 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. Parent PR: #10717 Author: Andrew Or <andrew@databricks.com> Author: Josh Rosen <joshrosen@databricks.com> Author: andrewor14 <andrew@databricks.com> Closes #10815 from andrewor14/get-or-create-metrics.
Diffstat (limited to 'mllib/src/test')
0 files changed, 0 insertions, 0 deletions