Uploaded image for project: 'Sqoop (READ-ONLY)'
  1. Sqoop (READ-ONLY)
  2. SQOOP-5

Sqoop should close database connection in case of accidental interruption of command execution

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: managers, mapreduce
    • Labels:
      None

      Description

      From MAPREDUCE-1340:

      If a sqoop command is running and suddenly interrupted or killed, all database connections should be automatically closed.
      Currently the code catches java.lang.InterruptedException, but it doesn't release and close the database connections in the catch block.

      In case this issue is found to be a problem, I suppose it may require some code refactoring in the following classes:

      org.apache.hadoop.sqoop.mapred.ImportJob
      org.apache.hadoop.sqoop.manager.SqlManager (and all its subclasses)
      org.apache.hadoop.sqoop.mapreduce.DataDrivenImportJob

        Attachments

          Activity

            People

            • Assignee:
              ahmed Ahmed Radwan
              Reporter:
              aaron Aaron Kimball
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: