Github user sryza commented on a diff in the pull request:
https://github.com/apache/spark/pull/3120#discussion_r19922345
--- Diff: core/src/main/scala/org/apache/spark/rdd/NewHadoopRDD.scala ---
@@ -173,12 +179,12 @@ class NewHadoopRDD[K, V](
// Update metrics with final amount
if (bytesReadCallback.isDefined) {
val bytesReadFn = bytesReadCallback.get
- inputMetrics.bytesRead = bytesReadFn()
+ inputMetrics.bytesRead = bytesReadFn() + bytesReadAtStart
} else if
(split.serializableHadoopSplit.value.isInstanceOf[FileSplit]) {
// If we can't get the bytes read from the FS stats, fall back
to the split size,
// which may be inaccurate.
try {
- inputMetrics.bytesRead =
split.serializableHadoopSplit.value.getLength
+ inputMetrics.bytesRead =
split.serializableHadoopSplit.value.getLength + bytesReadAtStart
--- End diff --
Looks like this goes over 100 characters?
---
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]