Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21758#discussion_r203620642
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala ---
    @@ -274,7 +274,9 @@ private[spark] class TaskSchedulerImpl(
           maxLocality: TaskLocality,
           shuffledOffers: Seq[WorkerOffer],
           availableCpus: Array[Int],
    -      tasks: IndexedSeq[ArrayBuffer[TaskDescription]]) : Boolean = {
    +      tasks: IndexedSeq[ArrayBuffer[TaskDescription]],
    +      addresses: ArrayBuffer[String],
    +      taskDescs: ArrayBuffer[TaskDescription]) : Boolean = {
    --- End diff --
    
    instead of filling 2 arrays here, can we just fill one 
`ArrayBuffer[(String, Int)]`?


---

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

Reply via email to