Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/4067#discussion_r23065689
--- Diff: core/src/test/scala/org/apache/spark/util/JsonProtocolSuite.scala
---
@@ -630,23 +659,27 @@ class JsonProtocolSuite extends FunSuite {
if (hasHadoopInput) {
val inputMetrics = new InputMetrics(DataReadMethod.Hadoop)
- inputMetrics.bytesRead = d + e + f
- t.inputMetrics = Some(inputMetrics)
+ inputMetrics.addBytesRead(d + e + f)
+ inputMetrics.addRecordsRead(if(hasRecords) (d + e + f) / 100 else -1)
+ t.setInputMetrics(Some(inputMetrics))
} else {
val sr = new ShuffleReadMetrics
sr.remoteBytesRead = b + d
sr.localBlocksFetched = e
sr.fetchWaitTime = a + d
sr.remoteBlocksFetched = f
+ sr.recordsRead = if(hasRecords) (b + d) / 100 else -1
--- End diff --
space after if
---
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]