hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonid Furman (JIRA)" <j...@apache.org>
Subject [jira] Created: (MAPREDUCE-1340) Sqoop should close database connection in case of accidental interruption of command execution
Date Tue, 29 Dec 2009 01:26:29 GMT
Sqoop should close database connection in case of accidental interruption of command execution
----------------------------------------------------------------------------------------------

                 Key: MAPREDUCE-1340
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1340
             Project: Hadoop Map/Reduce
          Issue Type: Improvement
            Reporter: Leonid Furman


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



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message