You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CR held owner reference onto driver and driver onto executer which lead to deletion of pods when deleting the CR. It was convenient since reinstalling the SparkApp requires to delete the old CR.
After 26.3
CR doesn't have owner reference on driver pod, driver still owns the executer. Means, deleting the CR now leaves driver and executer untouched and thus run uncontrolled until manually deletion. The operator auto deletes the driver pod once it reaches "terminating" phase which might not happen during uninstalls e.g.
Proposal
Deleting a CR purposefully should lead to the product being uninstalled. Maybe finalizer on the SparkApplication can help. We could on deletionTimestamp delete the driver pod which then cascades to the executer due to ownerRef. This would preserve the behaviour that if driver reaches terminating, it gets cleaned up by the operator and thus its executor.
I'm currently after a Jira issue of a customer running in exactly that. I've got a try for a fix, currently testing.
However, I figured when reinstalling the operator (carring the fix) pods without a CR (as a current cluster state could be) won't be cleaned up and rather a constant error is thrown:
15:21:34 INFO Starting reconcile driver pod
15:21:34 ERROR ... Spark application [long-running] not found ... NotFound
15:21:39 INFO ... object.reason=error policy requested retry
15:21:44 ERROR ... Spark application [long-running] not found
15:21:49 INFO Starting reconcile driver pod
Fixed by #758: the driver Pod now has an owner reference, so deleting a SparkApplication also removes its driver and executor Pods. The fix ships with 26.11. Please reopen if Pods are left behind after that.
Activity
Maleware commentedon Aug 26, 2026
A note on that:
I'm currently after a Jira issue of a customer running in exactly that. I've got a try for a fix, currently testing.
However, I figured when reinstalling the operator (carring the fix) pods without a CR (as a current cluster state could be) won't be cleaned up and rather a constant error is thrown:
This will be retried forever since
I might make another issue out of that, leave it here so I won't forget at least.
lfrancke commentedon Nov 11, 2026
Fixed by #758: the driver Pod now has an owner reference, so deleting a SparkApplication also removes its driver and executor Pods. The fix ships with 26.11. Please reopen if Pods are left behind after that.