-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Description
Apache Airflow version
2.6.2
What happened
Changes to the SparkKubernetesOperator which introduced in #21092 were reverted by the changes added in #29977
Until 2.6.2 when a spark application was created with the same name of a previous application, the old application (pods etc') was automatically deleted and the new application started (with the warning of 'Deleted SparkApplication with the same name' in the logs).
After 2.6.2 this scenario is causing an error starting the new application (409 - Already exists) and the previous application needs to be manually deleted (there is no easy way to delete it programmatically from airflow dags).
Was this behavior change done on purpose?
I can suggest to add a parameter to control the desired behavior.
What you think should happen instead
Changes to the SparkKubernetesOperator which introduced in #21092 were reverted by the changes added in #29977
How to reproduce
Start a new spark application with the same name of the previous one, compare 2.6.2 vs 2.5.3
Operating System
EKS
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct