From dev-return-13843-apmail-sqoop-dev-archive=sqoop.apache.org@sqoop.apache.org Fri Oct 10 03:56:42 2014 Return-Path: X-Original-To: apmail-sqoop-dev-archive@www.apache.org Delivered-To: apmail-sqoop-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E70A17DFE for ; Fri, 10 Oct 2014 03:56:42 +0000 (UTC) Received: (qmail 70468 invoked by uid 500); 10 Oct 2014 03:56:42 -0000 Delivered-To: apmail-sqoop-dev-archive@sqoop.apache.org Received: (qmail 70439 invoked by uid 500); 10 Oct 2014 03:56:42 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 70427 invoked by uid 99); 10 Oct 2014 03:56:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2014 03:56:42 +0000 Date: Fri, 10 Oct 2014 03:56:42 +0000 (UTC) From: "Hudson (JIRA)" To: dev@sqoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SQOOP-1476) Generic JDBC Connector - DB connections not closed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SQOOP-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14166320#comment-14166320 ] Hudson commented on SQOOP-1476: ------------------------------- FAILURE: Integrated in Sqoop2-hadoop100 #613 (See [https://builds.apache.org/job/Sqoop2-hadoop100/613/]) SQOOP-1476: Generic JDBC Connector - DB connections not closed (abraham: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=8fee134f7f236c18672ab8d1b97c511788bd18e9) * connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcFromInitializer.java * connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcToDestroyer.java > Generic JDBC Connector - DB connections not closed > -------------------------------------------------- > > Key: SQOOP-1476 > URL: https://issues.apache.org/jira/browse/SQOOP-1476 > Project: Sqoop > Issue Type: Bug > Components: connectors/generic > Affects Versions: 1.99.3 > Reporter: Claire Fautsch > Assignee: Claire Fautsch > Priority: Minor > Fix For: from/to > > Attachments: SQOOP-1476.patch > > > When using Generic JDBC Connector to export/import data with Sqoop2, database connections are not always properly closed. > Root cause is GenericJdbcExecutor not properly closed in > - {{GenericJdbcExportDestroyer.moveDataToDestinationTable}} > - {{GenericJdbcImportInitializer.getSchema}} > Adding {{executor.close}} to both methods should solve the problem > Problem was identified in sqoop-connector-generic-jdbc-1.99.3-cdh5.0.2. > Possible patch is attached -- This message was sent by Atlassian JIRA (v6.3.4#6332)