Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 99625 invoked from network); 29 Dec 2009 01:26:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Dec 2009 01:26:52 -0000 Received: (qmail 60544 invoked by uid 500); 29 Dec 2009 01:26:52 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 60465 invoked by uid 500); 29 Dec 2009 01:26:52 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 60451 invoked by uid 99); 29 Dec 2009 01:26:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 01:26:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Dec 2009 01:26:50 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9D207234C052 for ; Mon, 28 Dec 2009 17:26:29 -0800 (PST) Message-ID: <1778181354.1262049989642.JavaMail.jira@brutus.apache.org> Date: Tue, 29 Dec 2009 01:26:29 +0000 (UTC) From: "Leonid Furman (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Created: (MAPREDUCE-1340) Sqoop should close database connection in case of accidental interruption of command execution MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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.