peterxcli opened a new pull request, #53590:
URL: https://github.com/apache/spark/pull/53590

   ### What changes were proposed in this pull request?
   - Stop waiting loop when the gateway process exits and raise 
`PySparkRuntimeError` on non-zero return codes.
   - Include command and return code in the error message for easier diagnosis.
   - Keep the existing check for missing connection info file.
   
   ### Why are the changes needed?
   - Previously the loop could spin until the timeout even if the gateway had 
already failed.
   - Without surfacing the return code/command, diagnosing startup failures was 
harder.
   
   ### Does this PR introduce _any_ user-facing change?
   - No API changes; failure now surfaces earlier with clearer error details 
when the gateway process dies.
   
   ### How was this patch tested?
   - Manual reasoning; no automated tests added (gateway startup is exercised 
by existing suites).
   
   ### Was this patch authored or co-authored using generative AI tooling?
   - No.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to