Github user sryza commented on a diff in the pull request: https://github.com/apache/spark/pull/2968#discussion_r20055135 --- Diff: core/src/test/scala/org/apache/spark/metrics/InputOutputMetricsSuite.scala --- @@ -73,4 +78,32 @@ class InputMetricsSuite extends FunSuite with SharedSparkContext { assert(taskBytesRead.length == 2) assert(taskBytesRead.sum >= file.length()) } + + test("output metrics when writing text file") { + val fs = FileSystem.getLocal(new Configuration()) + val outPath = new Path(fs.getWorkingDirectory, "outdir") + + if (SparkHadoopUtil.get.getFSBytesWrittenOnThreadCallback(outPath, fs.getConf).isDefined) { --- End diff -- Yeah, I had this same thought, but I can't think of any good way to prevent this. Note that the other tests in this class have the same problem.
--- 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