Skip to content

Spark: Fix missing space in YARN waitAppCompletion error message - #71055

Merged
Miretpl merged 1 commit into
apache:mainfrom
onlyarnav:fix-spark-yarn-error-message-spacing
Aug 4, 2026
Merged

Spark: Fix missing space in YARN waitAppCompletion error message#71055
Miretpl merged 1 commit into
apache:mainfrom
onlyarnav:fix-spark-yarn-error-message-spacing

Conversation

@onlyarnav

@onlyarnav onlyarnav commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Description

In _YarnSparkSubmitBackend.submit_job (airflow/providers/apache/spark/operators/spark_submit.py), implicit string literal concatenation across lines lacked a trailing space after "conflicts":

"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. "

This rendered as "conflictswith" in the exception message raised to users.

This PR adds the missing space so the error message correctly formats as "conflicts with the need", and updates the corresponding unit test regex in test_spark_submit.py to assert the formatted string.

Related Issues / Context

Follow-up to #68679.

fixes: #71053

Fix implicit string literal concatenation missing a space between 'conflicts' and 'with' in _YarnSparkSubmitBackend.
@Miretpl
Miretpl merged commit 2731cc2 into apache:main Aug 4, 2026
79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spark: Fix missing space in YARN waitAppCompletion error message

2 participants