You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Randall Lin (JIRA)" <ji...@apache.org> on 2018/01/31 17:56:00 UTC

[jira] [Created] (AIRFLOW-2051) race condition during airflow setup

Randall Lin created AIRFLOW-2051:
------------------------------------

             Summary: 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


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)