Ngone51 commented on code in PR #39410:
URL: https://github.com/apache/spark/pull/39410#discussion_r1063063118
##########
core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala:
##########
@@ -418,9 +415,7 @@ class CoarseGrainedSchedulerBackend(scheduler:
TaskSchedulerImpl, val rpcEnv: Rp
val executorData = executorDataMap(task.executorId)
// Do resources allocation here. The allocated resources will get
released after the task
// finishes.
- val rpId = executorData.resourceProfileId
- val prof =
scheduler.sc.resourceProfileManager.resourceProfileFromId(rpId)
- val taskCpus = ResourceProfile.getTaskCpusOrDefaultForProfile(prof,
conf)
+ val taskCpus = task.cpus
executorData.freeCores -= taskCpus
Review Comment:
```suggestion
executorData.freeCores -= task.cpus
```
--
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]