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

    https://github.com/apache/spark/pull/214#discussion_r11102691
  
    --- 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 --
    
    Is it possible to merge  TaskMesosSerializedRunner and 
TaskCGSerializedRunner in the same class, or at least declare them in the same 
source file, so that we don't need to walk through multiple files in future 
updates?


---
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