[
https://issues.apache.org/jira/browse/AIRFLOW-2051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Randall Lin reassigned AIRFLOW-2051:
------------------------------------
Assignee: Randall Lin
> race condition during airflow setup
> -----------------------------------
>
> Key: AIRFLOW-2051
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2051
> Project: Apache Airflow
> Issue Type: Bug
> Components: utils
> Reporter: Randall Lin
> Assignee: Randall Lin
> Priority: Minor
>
> os.makedirs calls should use exist_ok = True instead of checking for
> existence nonatomically.
> This conditional can result in a race condition of
> # Process 1 checks for directory
> # Process 2 checks for directory
> # Process 1 successfully creates directory
> # Process 2 fails when trying to create directory
> using {{exist_ok}} will avoid this and be equivalent otherwise.
> fixed in this PR
> https://github.com/apache/incubator-airflow/pull/2970
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)