Skip to content

Commit

Permalink
Missed a reference to the old property name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Vanzin committed Apr 23, 2015
1 parent 9d59d92 commit 2ad77e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ private[spark] object JsonProtocol {
val appId = Utils.jsonOption(json \ "App ID").map(_.extract[String])
val time = (json \ "Timestamp").extract[Long]
val sparkUser = (json \ "User").extract[String]
val appAttemptId = Utils.jsonOption(json \ "appAttemptId").map(_.extract[String])
val appAttemptId = Utils.jsonOption(json \ "App Attempt ID").map(_.extract[String])
SparkListenerApplicationStart(appName, appId, time, sparkUser, appAttemptId)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class JsonProtocolSuite extends FunSuite {
val blockManagerRemoved = SparkListenerBlockManagerRemoved(2L,
BlockManagerId("Scarce", "to be counted...", 100))
val unpersistRdd = SparkListenerUnpersistRDD(12345)
val applicationStart = SparkListenerApplicationStart("The winner of all", None, 42L, "Garfield",
None)
val applicationStart = SparkListenerApplicationStart("The winner of all", Some("appId"),
42L, "Garfield", Some("appAttempt"))
val applicationEnd = SparkListenerApplicationEnd(42L)
val logUrlMap = Map("stderr" -> "mystderr", "stdout" -> "mystdout").toMap
val executorAdded = SparkListenerExecutorAdded(executorAddedTime, "exec1",
Expand Down Expand Up @@ -1500,8 +1500,10 @@ class JsonProtocolSuite extends FunSuite {
|{
| "Event": "SparkListenerApplicationStart",
| "App Name": "The winner of all",
| "App ID": "appId",
| "Timestamp": 42,
| "User": "Garfield"
| "User": "Garfield",
| "App Attempt ID": "appAttempt"
|}
"""

Expand Down

0 comments on commit 2ad77e7

Please sign in to comment.