Details
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