vanzin commented on a change in pull request #24817: [WIP][SPARK-27963][core]
Allow dynamic allocation without a shuffle service.
URL: https://github.com/apache/spark/pull/24817#discussion_r296943083
##########
File path:
core/src/main/scala/org/apache/spark/scheduler/dynalloc/ExecutorMonitor.scala
##########
@@ -279,5 +452,35 @@ private[spark] class ExecutorMonitor(
updateNextTimeout(newDeadline)
}
}
+
+ def addShuffle(id: Int): Unit = {
+ if (shuffleIds.add(id)) {
+ hasActiveShuffle = true
+ if (!isIdle) {
+ updateTimeout()
Review comment:
I think this can go away; I changed `onTaskEnd` at some point so that the
task count is updated after this call, so that code should handle the necessary
updates.
----------------------------------------------------------------
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]