Ngone51 commented on code in PR #39410:
URL: https://github.com/apache/spark/pull/39410#discussion_r1063060154
##########
core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala:
##########
@@ -262,9 +269,11 @@ private[spark] class CoarseGrainedExecutorBackend(
override def statusUpdate(taskId: Long, state: TaskState, data: ByteBuffer):
Unit = {
val resources = taskResources.getOrElse(taskId, Map.empty[String,
ResourceInformation])
- val msg = StatusUpdate(executorId, taskId, state, data, resources)
+ val cpus = taskCpus.getOrElse(taskId, 0)
Review Comment:
Could we get the taskCpu by
`executor.runningTask(taskId).taskDescription.cpus` to get rid of `taskCpus`?
--
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]