Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-2869

Potential leak of Jdbc Connection and PreparedStatement in case of error in JdbcRDD

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0, 1.1.0
    • 1.0.3, 1.1.0
    • Spark Core
    • All

    • Flex-BlazeDS Sprint 1

    Description

      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

      Attachments

        Activity

          People

            javadba Stephen Boesch
            javadba Stephen Boesch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified