airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-1168) DbApiHook does not close connections when an exception occurs
Date Fri, 12 May 2017 09:28:04 GMT

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

ASF subversion and git services commented on AIRFLOW-1168:
----------------------------------------------------------

Commit 314b2deb6aacf7e1891afd79b51a94a2941bc1ec in incubator-airflow's branch refs/heads/v1-8-test
from [~nzeilemaker]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=314b2de ]

[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

(cherry picked from commit 8aeebd488416bd7618d36c64c49eca58f3f45e0d)
Signed-off-by: Bolke de Bruin <bolke@xs4all.nl>


> 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
>             Fix For: 1.8.2
>
>
> 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)

Mime
View raw message