You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/08/30 02:56:35 UTC

[GitHub] [spark] HyukjinKwon commented on a change in pull request #25622: [SPARK-28915][CORE]The new keyword is not used when instantiating the WorkerOffer.

HyukjinKwon commented on a change in pull request #25622: [SPARK-28915][CORE]The new keyword is not used when instantiating the WorkerOffer.
URL: https://github.com/apache/spark/pull/25622#discussion_r319341164
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala
 ##########
 @@ -270,7 +270,7 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, val rpcEnv: Rp
         val activeExecutors = executorDataMap.filterKeys(executorIsAlive)
         val workOffers = activeExecutors.map {
           case (id, executorData) =>
-            new WorkerOffer(id, executorData.executorHost, executorData.freeCores,
+            WorkerOffer(id, executorData.executorHost, executorData.freeCores,
 
 Review comment:
   I think we don't have to change this - it's going to cause a lot of conflicts when we backport but the gain here is virtually nothing. Either way is legitimate.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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