airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Lin (JIRA)" <>
Subject [jira] [Created] (AIRFLOW-2051) race condition during airflow setup
Date Wed, 31 Jan 2018 17:56:00 GMT
Randall Lin created AIRFLOW-2051:

             Summary: race condition during airflow setup
                 Key: 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

This message was sent by Atlassian JIRA

View raw message