[ 
https://issues.apache.org/jira/browse/SPARK-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14132608#comment-14132608
 ] 

Apache Spark commented on SPARK-3518:
-------------------------------------

User 'sarutak' has created a pull request for this issue:
https://github.com/apache/spark/pull/2380

> 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