spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-2869) Potential leak of Jdbc Connection and PreparedStatement in case of error in JdbcRDD
Date Wed, 06 Aug 2014 01:20:12 GMT

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

Reynold Xin resolved SPARK-2869.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.3
                   1.1.0
         Assignee: Stephen Boesch

> Potential leak of Jdbc Connection and PreparedStatement in case of error in JdbcRDD
> -----------------------------------------------------------------------------------
>
>                 Key: SPARK-2869
>                 URL: https://issues.apache.org/jira/browse/SPARK-2869
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: All
>            Reporter: Stephen Boesch
>            Assignee: Stephen Boesch
>            Priority: Minor
>              Labels: jdbc, rdd
>             Fix For: 1.1.0, 1.2.0, 1.0.3
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Within the compute() method of the JdbcRDD there is constructor logic that includes obtaining
a JDBC connection, creating a PreparedStatement, and generating a ResultSet. This logic is
not apparently protected within a try/catch block. In case of error/exception it would appear
then to leak connections/statmenets/resultSets



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message