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
{{ message }}
Repository navigation
Spark: Fix missing space in YARN waitAppCompletion error message #71053
In _YarnSparkSubmitBackend.submit_job (airflow/providers/apache/spark/operators/spark_submit.py), implicit string literal concatenation across lines lacks a space between adjacent string tokens:
raiseValueError(
"spark.yarn.submit.waitAppCompletion=true cannot be set for cluster mode as it conflicts""with the need to exit spark-submit immediately to persist the application ID for tracking. ""Either remove the explicit conf or set durable=False."
)
This currently renders to the user as: ...cannot be set for cluster mode as it conflictswith the need to exit...
Context
Follow-up to PR #68679 (refactoring SparkSubmitOperator backends into strategy classes).
Proposed Change
Add a trailing space after "conflicts " so that the raised ValueError formats correctly as "conflicts with the need", and update the unit test in test_spark_submit.py to assert the formatted error string.
Activity