Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1476

Generic JDBC Connector - DB connections not closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.99.3
    • from/to
    • connectors/generic
    • None

    Description

      When using Generic JDBC Connector to export/import data with Sqoop2, database connections are not always properly closed.
      Root cause is GenericJdbcExecutor not properly closed in

      • GenericJdbcExportDestroyer.moveDataToDestinationTable
      • GenericJdbcImportInitializer.getSchema

      Adding executor.close to both methods should solve the problem

      Problem was identified in sqoop-connector-generic-jdbc-1.99.3-cdh5.0.2.

      Possible patch is attached

      Attachments

        1. SQOOP-1476.patch
          2 kB
          Claire Fautsch

        Activity

          People

            clairefautsch Claire Fautsch
            clairefautsch Claire Fautsch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: