dongjoon-hyun commented on code in PR #53840:
URL: https://github.com/apache/spark/pull/53840#discussion_r2828703973
##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/AbstractPodsAllocator.scala:
##########
@@ -35,6 +35,20 @@ import org.apache.spark.resource.ResourceProfile
*/
@DeveloperApi
abstract class AbstractPodsAllocator {
+ /*
+ * Optional lifecycle manager for tracking executor pod lifecycle events.
+ * Set via setExecutorPodsLifecycleManager for backward compatibility.
+ */
+ protected var executorPodsLifecycleManager: ExecutorPodsLifecycleManager = _
+
+ /*
+ * Set the lifecycle manager for tracking executor pod lifecycle events.
+ * This method is optional and may not exist in custom implementations based
on older versions.
+ */
+ def setExecutorPodsLifecycleManager(manager: ExecutorPodsLifecycleManager):
Unit = {
+ executorPodsLifecycleManager = manager
Review Comment:
Maybe,
```scala
- executorPodsLifecycleManager = manager
+ executorPodsLifecycleManager = Some(manager)
```
--
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]