aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2016-01-29 18:03:04 -0800
committerAndrew Or <andrew@databricks.com>2016-01-29 18:03:08 -0800
commit12252d1da90fa7d2dffa3a7c249ecc8821dee130 (patch)
treeafac517a71e5639ba7796d55a3339167dd5a4f05 /dev
parent70e69fc4dd619654f5d24b8b84f6a94f7705c59b (diff)
downloadspark-12252d1da90fa7d2dffa3a7c249ecc8821dee130.tar.gz
spark-12252d1da90fa7d2dffa3a7c249ecc8821dee130.tar.bz2
spark-12252d1da90fa7d2dffa3a7c249ecc8821dee130.zip
[SPARK-13071] Coalescing HadoopRDD overwrites existing input metrics
This issue is causing tests to fail consistently in master with Hadoop 2.6 / 2.7. This is because for Hadoop 2.5+ we overwrite existing values of `InputMetrics#bytesRead` in each call to `HadoopRDD#compute`. In the case of coalesce, e.g. ``` sc.textFile(..., 4).coalesce(2).count() ``` we will call `compute` multiple times in the same task, overwriting `bytesRead` values from previous calls to `compute`. For a regression test, see `InputOutputMetricsSuite.input metrics for old hadoop with coalesce`. I did not add a new regression test because it's impossible without significant refactoring; there's a lot of existing duplicate code in this corner of Spark. This was caused by #10835. Author: Andrew Or <andrew@databricks.com> Closes #10973 from andrewor14/fix-input-metrics-coalesce.
Diffstat (limited to 'dev')
0 files changed, 0 insertions, 0 deletions