Kousuke Saruta created SPARK-3518:
-------------------------------------

             Summary: Remove useless statement in JsonProtocol
                 Key: SPARK-3518
                 URL: https://issues.apache.org/jira/browse/SPARK-3518
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 1.2.0
            Reporter: Kousuke Saruta
            Priority: Minor


In org.apache.spark.util.JsonProtocol#taskInfoToJson, a variable named 
"accumUpdateMap" is created as follows.

{code}
val accumUpdateMap = taskInfo.accumulables
{code}

But accumUpdateMap is never used and there is 2nd invocation of 
"taskInfo.accumlables" as follows.

{code}
("Accumulables" -> 
JArray(taskInfo.accumulables.map(accumulableInfoToJson).toList))
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to