GitHub user awarrior opened a pull request: https://github.com/apache/spark/pull/19118
[SPARK-21882][CORE] OutputMetrics doesn't count written bytes correctly in the saveAsHadoopDataset function spark-21882 ## What changes were proposed in this pull request? Switch the initialization order of HadoopOutputMetrics and SparkHadoopWriter ## How was this patch tested? Existing tests You can merge this pull request into a Git repository by running: $ git pull https://github.com/awarrior/spark master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/19118.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 #19118 ---- commit 0f0c3b1c91b4f06c7e48874b8f6329c5c1c1b3ce Author: Jarvis <awarr...@users.noreply.github.com> Date: 2017-09-04T06:21:13Z Update SparkHadoopWriter.scala spark-21882 ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org