You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Iuliia Volkova (JIRA)" <ji...@apache.org> on 2018/09/21 10:40:00 UTC

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

    [ https://issues.apache.org/jira/browse/AIRFLOW-2051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16623396#comment-16623396 ] 

Iuliia Volkova commented on AIRFLOW-2051:
-----------------------------------------

This task is incorrect and impossible, because Airflow support 2.7 python and exist_ok was added only in Python3

[~ashb], can you close this task? 

> 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)