You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/09/02 18:01:03 UTC

[jira] [Commented] (AIRFLOW-2605) MySqlHook().run() will not commit if autocommit is set to True.

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

Apache Spark commented on AIRFLOW-2605:
---------------------------------------

User 'yrqls21' has created a pull request for this issue:
https://github.com/apache/incubator-airflow/pull/3493

> MySqlHook().run() will not commit if autocommit is set to True.
> ---------------------------------------------------------------
>
>                 Key: AIRFLOW-2605
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2605
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Kevin Yang
>            Assignee: Kevin Yang
>            Priority: Major
>             Fix For: 1.10.0, 2.0.0
>
>
> MySql [set autocommit in a different way|https://github.com/PyMySQL/mysqlclient-python/blob/master/MySQLdb/connections.py#L249-L256]. Thus setting it by doing `conn.autocommit = True` as we currently do will not set autocommit correctly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)