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)

Reply via email to