bin-lian commented on code in PR #46817:
URL: https://github.com/apache/airflow/pull/46817#discussion_r1965570228


##########
providers/apache/spark/src/airflow/providers/apache/spark/hooks/spark_submit.py:
##########
@@ -557,7 +557,12 @@ def submit(self, application: str = "", **kwargs: Any) -> 
None:
 
         # Check spark-submit return code. In Kubernetes mode, also check the 
value
         # of exit code in the log, as it may differ.
-        if returncode or (self._is_kubernetes and self._spark_exit_code != 0):
+        # The returncode of the client mode driver program can confirm the 
status of the spark program
+        if returncode or (
+            self._is_kubernetes
+            and self._connection["deploy_mode"] == "cluster"

Review Comment:
   I have changed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to