Github user CodingCat commented on a diff in the pull request:

    https://github.com/apache/spark/pull/214#discussion_r11102737
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosSchedulerBackend.scala
 ---
    @@ -62,6 +65,30 @@ private[spark] class MesosSchedulerBackend(
     
       var classLoader: ClassLoader = null
     
    +  val serializeWorkerPool = Utils.newDaemonFixedThreadPool(
    +    scheduler.sc.conf.getInt("spark.scheduler.task.serialize.threads", 4), 
"task-serialization")
    +
    +  val env = SparkEnv.get
    +  protected val serializer = new ThreadLocal[SerializerInstance] {
    +    override def initialValue(): SerializerInstance = {
    +      env.closureSerializer.newInstance()
    +    }
    +  }
    +
    +  class TaskMesosSerializedRunner(taskNoSer: TaskDescWithoutSerializedTask,
    --- End diff --
    
    I just noticed that @mridulm proposed the same thing in his last comment, I 
think it will be great if we can do in that way


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to