wbo4958 commented on code in PR #43494:
URL: https://github.com/apache/spark/pull/43494#discussion_r1395199162
##########
core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala:
##########
@@ -191,7 +191,10 @@ private[spark] class CoarseGrainedExecutorBackend(
} else {
val taskDesc = TaskDescription.decode(data.value)
logInfo("Got assigned task " + taskDesc.taskId)
- taskResources.put(taskDesc.taskId, taskDesc.resources)
+ // Convert resources amounts into ResourceInformation
+ val resources = taskDesc.resources.map { case (rName,
addressesAmounts) =>
+ rName -> new ResourceInformation(rName,
addressesAmounts.keys.toSeq.sorted.toArray)}
+ taskResources.put(taskDesc.taskId, resources)
Review Comment:
Sounds good. new commits have removed the taskResources
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]