You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/10/16 08:31:20 UTC

[jira] [Commented] (SPARK-17931) taskScheduler has some unneeded serialization

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

Apache Spark commented on SPARK-17931:
--------------------------------------

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

> taskScheduler has some unneeded serialization
> ---------------------------------------------
>
>                 Key: SPARK-17931
>                 URL: https://issues.apache.org/jira/browse/SPARK-17931
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>            Reporter: Guoqiang Li
>
> When taskScheduler instantiates TaskDescription, it calls `Task.serializeWithDependencies(task, sched.sc.addedFiles, sched.sc.addedJars, ser)`.  It serializes task and its dependency. 
> But after SPARK-2521 has been merged into the master, the ResultTask class and ShuffleMapTask  class no longer contain rdd and closure objects. TaskDescription class can be changed as below:
> {noformat}
> class TaskDescription[T](
> val taskId: Long,
> val attemptNumber: Int,
> val executorId: String,
> val name: String,
> val index: Int, 
> val task: Task[T]) extends Serializable
> {noformat}



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

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