attilapiros commented on a change in pull request #24011: [SPARK-27071][CORE]
Expose additional metrics in status.api.v1.StageData
URL: https://github.com/apache/spark/pull/24011#discussion_r263764396
##########
File path: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala
##########
@@ -433,13 +433,13 @@ private[ui] class StageDataSource(
}
val formattedDuration = duration.map(d =>
UIUtils.formatDuration(d)).getOrElse("Unknown")
- val inputRead = stageData.inputBytes
+ val inputRead = stageData.metrics.inputMetrics.bytesRead
val inputReadWithUnit = if (inputRead > 0) Utils.bytesToString(inputRead)
else ""
- val outputWrite = stageData.outputBytes
+ val outputWrite = stageData.metrics.outputMetrics.bytesWritten
val outputWriteWithUnit = if (outputWrite > 0)
Utils.bytesToString(outputWrite) else ""
- val shuffleRead = stageData.shuffleReadBytes
+ val shuffleRead = stageData.metrics.shuffleReadMetrics.bytesRead
val shuffleReadWithUnit = if (shuffleRead > 0)
Utils.bytesToString(shuffleRead) else ""
- val shuffleWrite = stageData.shuffleWriteBytes
+ val shuffleWrite = stageData.metrics.shuffleWriteMetrics.recordsWritten
Review comment:
Wrong property: instead of `shuffleWriteMetrics.recordsWritten` you should
use `shuffleWriteMetrics.bytesWritten`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]