You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jarek Potiuk (JIRA)" <ji...@apache.org> on 2019/01/04 09:28:00 UTC
[jira] [Created] (AIRFLOW-3630) Google Cloud SQL query Operator
cleanup will not close the connection on error
Jarek Potiuk created AIRFLOW-3630:
-------------------------------------
Summary: Google Cloud SQL query Operator cleanup will not close the connection on error
Key: AIRFLOW-3630
URL: https://issues.apache.org/jira/browse/AIRFLOW-3630
Project: Apache Airflow
Issue Type: Bug
Reporter: Jarek Potiuk
Assignee: Jarek Potiuk
When there is an error during Cloud SQL Query, there is a cleanup in post_execute_method. This cleanup is supposed to delete the connection, however it turns out that post_execute is not executed when execute() method throws an error (it was bad assumption).
The connection should be closed always in finally clause.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)