Skip to content

Commit

Permalink
Updated test suites.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Aug 20, 2014
1 parent c414c36 commit 40a6bd5
Show file tree
Hide file tree
Showing 3 changed files with 371 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private[spark] object JsonProtocol {
val completionTime = stageInfo.completionTime.map(JInt(_)).getOrElse(JNothing)
val failureReason = stageInfo.failureReason.map(JString(_)).getOrElse(JNothing)
("Stage ID" -> stageInfo.stageId) ~
("Attempt ID" -> stageInfo.attemptId) ~
("Stage Attempt ID" -> stageInfo.attemptId) ~
("Stage Name" -> stageInfo.name) ~
("Number of Tasks" -> stageInfo.numTasks) ~
("RDD Info" -> rddInfo) ~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class JobProgressListenerSuite extends FunSuite with LocalSparkContext with Matc
listener.onTaskEnd(
SparkListenerTaskEnd(task.stageId, 1, taskType, Success, taskInfo, metrics))
assert(listener.stageIdToData((task.stageId, 1)).numCompleteTasks === 1)
assert(listener.stageIdToData((task.stageId, 1)).numFailedTasks === failCount)
assert(listener.stageIdToData((task.stageId, 0)).numFailedTasks === failCount)
}

test("test update metrics") {
Expand Down
Loading

0 comments on commit 40a6bd5

Please sign in to comment.