Skip to content

Spark: Fix missing space in YARN waitAppCompletion error message #71053

Closed

Description

@onlyarnav

Under which category would you file this issue?

Providers

Description

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:

raise ValueError(
    "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.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:bug
    needs-triage
    on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerskind:bugneeds-triageprovider:apache-spark

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions