shahidki commented on a change in pull request #26508: [SPARK-26260][Core]For
disk store tasks summary table should show only successful tasks summary
URL: https://github.com/apache/spark/pull/26508#discussion_r349550581
##########
File path:
core/src/test/scala/org/apache/spark/status/AppStatusStoreSuite.scala
##########
@@ -132,10 +170,49 @@ class AppStatusStoreSuite extends SparkFunSuite {
}
private def newTaskData(i: Int, status: String = "SUCCESS"): TaskDataWrapper
= {
- new TaskDataWrapper(
- i, i, i, i, i, i, i.toString, i.toString, status, i.toString, false,
Nil, None,
- i, i, i, i, i, i, i, i, i, i,
+
+ val metrics = new v1.TaskMetrics(
i, i, i, i, i, i, i, i, i, i,
- i, i, i, i, stageId, attemptId)
+ new InputMetrics(i, i),
+ new OutputMetrics(i, i),
+ new ShuffleReadMetrics(i, i, i, i, i, i, i),
+ new ShuffleWriteMetrics(i, i, i))
+
+ val hasMetrics = i >= 0
+
+ val taskMetrics: v1.TaskMetrics = if (hasMetrics && status != "SUCCESS") {
Review comment:
Yes, now using LiveTask.
----------------------------------------------------------------
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]