You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Leonid Furman (JIRA)" <ji...@apache.org> on 2009/12/29 02:26:29 UTC

[jira] Created: (MAPREDUCE-1340) Sqoop should close database connection in case of accidental interruption of command execution

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.


[jira] Resolved: (MAPREDUCE-1340) Sqoop should close database connection in case of accidental interruption of command execution

Posted by "Aaron Kimball (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAPREDUCE-1340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Kimball resolved MAPREDUCE-1340.
--------------------------------------

    Resolution: Won't Fix

Sqoop has been removed from MapReduce; issue moved to http://github.com/cloudera/sqoop/issues#issue/3

> 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
>          Components: contrib/sqoop
>            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.