WeichenXu123 opened a new pull request #25315: [SPARK-28582][PYSPARK] Fix pyspark daemon exit failed when receive SIGTERM on py3.7 URL: https://github.com/apache/spark/pull/25315 ## What changes were proposed in this pull request? Fix pyspark daemon exit failed when receive SIGTERM on py3.7. The reason is probably bug in python3.7 `sys.exit`. It raise `SystemExit` exception but do not terminate process successfully. I change it to `os._exit` and it works fine. ## How was this patch tested? Run test ``` python/run-tests --python-executables=python3.7 --testname "pyspark.tests.test_daemon DaemonTests" ``` **Before** Fail on test "test_termination_sigterm". And we can see daemon process do not exit. **After** Test passed. Please review https://spark.apache.org/contributing.html before opening a pull request.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
