[ 
https://issues.apache.org/jira/browse/SPARK-54456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon reassigned SPARK-54456:
------------------------------------

    Assignee: Tian Gao

> Avoid fork after import dangerous libraries
> -------------------------------------------
>
>                 Key: SPARK-54456
>                 URL: https://issues.apache.org/jira/browse/SPARK-54456
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 4.2.0
>            Reporter: Tian Gao
>            Assignee: Tian Gao
>            Priority: Major
>              Labels: pull-request-available
>
> It's impossible to guarantee the safety of a fork after multiple threads are 
> used.
> [https://discuss.python.org/t/switching-default-multiprocessing-context-to-spawn-on-posix-as-well/21868]
> That's why Python issues a warning in such cases after 3.12. However, our 
> daemon is not designed to be safe. It could import an arbitrary library 
> before fork and potentially cause a deadlock after fork.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to