You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (Jira)" <ji...@apache.org> on 2019/12/13 14:36:00 UTC

[jira] [Resolved] (AIRFLOW-5463) Variable set is not atomic

     [ https://issues.apache.org/jira/browse/AIRFLOW-5463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ash Berlin-Taylor resolved AIRFLOW-5463.
----------------------------------------
    Resolution: Fixed

> Variable set is not atomic
> --------------------------
>
>                 Key: AIRFLOW-5463
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5463
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: core, models
>    Affects Versions: 1.10.5
>            Reporter: Cedrik Neumann
>            Priority: Major
>             Fix For: 1.10.7
>
>
> The function \{{Variable.set}} deletes the variable first
> [https://github.com/apache/airflow/blob/1.10.5/airflow/models/variable.py#L137]
> although it doesn't pass the DB session as an argument, thus delete and add don't run in an atomic operation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)