Skip to content

Commit c660fbc

Browse files
committed
Removed useless statement in JsonProtocol.scala
1 parent b4dded4 commit c660fbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/util/JsonProtocol.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import scala.collection.Map
2525
import org.json4s.DefaultFormats
2626
import org.json4s.JsonDSL._
2727
import org.json4s.JsonAST._
28+
29+
// Don't remove. It may seem this statement is useless but this is need to parse with Jackson
2830
import org.json4s.jackson.JsonMethods._
2931

3032

@@ -217,7 +219,7 @@ private[spark] object JsonProtocol {
217219
("Getting Result Time" -> taskInfo.gettingResultTime) ~
218220
("Finish Time" -> taskInfo.finishTime) ~
219221
("Failed" -> taskInfo.failed) ~
220-
("Accumulables" -> JArray(taskInfo.accumulables.map(accumulableInfoToJson).toList))
222+
("Accumulables" -> JArray(accumUpdateMap.map(accumulableInfoToJson).toList))
221223
}
222224

223225
def accumulableInfoToJson(accumulableInfo: AccumulableInfo): JValue = {

0 commit comments

Comments
 (0)