GitHub user andrewor14 opened a pull request:
https://github.com/apache/spark/pull/10973
[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`.
This was caused by #10835.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/andrewor14/spark fix-input-metrics-coalesce
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10973.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #10973
----
commit c31a41010afd7c5871166a80396ea47901bf5e80
Author: Andrew Or <[email protected]>
Date: 2016-01-29T02:39:24Z
Do not overwrite existing values of InputMetrics#bytesRead
commit c5a97fcf3cc3e827eb9067abdc24d0d7fbe1f76c
Author: Andrew Or <[email protected]>
Date: 2016-01-29T02:40:34Z
Merge branch 'master' of github.com:apache/spark into
fix-input-metrics-coalesce
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]