[
https://issues.apache.org/jira/browse/AIRFLOW-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16007853#comment-16007853
]
ASF subversion and git services commented on AIRFLOW-1168:
----------------------------------------------------------
Commit 8aeebd488416bd7618d36c64c49eca58f3f45e0d in incubator-airflow's branch
refs/heads/master from [~nzeilemaker]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=8aeebd4 ]
[AIRFLOW-1168] Add closing() to all connections and cursors
This will prevent any left-open connections
whenever an exception occurs
Closes #2269 from NielsZeilemaker/AIRFLOW-1168
> DbApiHook does not close connections when an exception occurs
> -------------------------------------------------------------
>
> Key: AIRFLOW-1168
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1168
> Project: Apache Airflow
> Issue Type: Bug
> Reporter: Niels Zeilemaker
> Assignee: Niels Zeilemaker
>
> Most methods in the DbApiHook won't close connections/cursors when an
> exception occurs. It need to be wrapped with try/finally clauses
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)