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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.1.0
    • Fix Version/s: 1.0.3, 1.1.0
    • Component/s: Spark Core
    • Labels:
    • Environment:

      All

    • Target Version/s:
    • Sprint:
      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

            • Assignee:
              javadba Stephen Boesch
              Reporter:
              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