AngersZhuuuu commented on code in PR #52793:
URL: https://github.com/apache/spark/pull/52793#discussion_r2567124226
##########
core/src/main/scala/org/apache/spark/scheduler/TaskSchedulerImpl.scala:
##########
@@ -605,7 +611,8 @@ private[spark] class TaskSchedulerImpl(
// If there are no idle executors and dynamic allocation is
enabled, then we would
// notify ExecutorAllocationManager to allocate more executors
to schedule the
// unschedulable tasks else we will abort immediately.
- executorIdToRunningTaskIds.find(x => !isExecutorBusy(x._1))
match {
+ executorIdToRunningTaskIds.find(
+ x => isExecutorAvailable(x._1) && !isExecutorBusy(x._1)) match
{
Review Comment:
How about current code?
--
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]