dongjoon-hyun commented on a change in pull request #25047: 
[WIP][SPARK-27371][CORE] Support GPU-aware resources scheduling in Standalone
URL: https://github.com/apache/spark/pull/25047#discussion_r300217126
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/deploy/master/Master.scala
 ##########
 @@ -816,6 +865,17 @@ private[deploy] class Master(
     apps.filterNot(completedApps.contains(_)).foreach { app =>
       app.driver.send(WorkerRemoved(worker.id, worker.host, msg))
     }
+    if (worker.resourcesCanBeReleased.nonEmpty) {
+      val brothers = Random.shuffle(idToWorker.filter(_._2.host == 
worker.host))
+      if (brothers.nonEmpty) {
+        val delegate = brothers.head._2
+        delegate.endpoint.send(ReleaseResources(worker.resourcesCanBeReleased))
+      } else {
+        // TODO(wuyi5) cases here are hard to handle:
 
 Review comment:
   ditto.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to