Return-Path: Delivered-To: apmail-hadoop-chukwa-dev-archive@minotaur.apache.org Received: (qmail 17788 invoked from network); 13 Apr 2009 18:43:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2009 18:43:36 -0000 Received: (qmail 61611 invoked by uid 500); 13 Apr 2009 18:43:36 -0000 Delivered-To: apmail-hadoop-chukwa-dev-archive@hadoop.apache.org Received: (qmail 61591 invoked by uid 500); 13 Apr 2009 18:43:36 -0000 Mailing-List: contact chukwa-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@hadoop.apache.org Delivered-To: mailing list chukwa-dev@hadoop.apache.org Received: (qmail 61530 invoked by uid 99); 13 Apr 2009 18:43:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 18:43:35 +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; Mon, 13 Apr 2009 18:43:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CC70A234C003 for ; Mon, 13 Apr 2009 11:43:14 -0700 (PDT) Message-ID: <1354668205.1239648194822.JavaMail.jira@brutus> Date: Mon, 13 Apr 2009 11:43:14 -0700 (PDT) From: "Cheng (JIRA)" To: chukwa-dev@hadoop.apache.org Subject: [jira] Commented: (CHUKWA-124) Metrics Data Loader doesn't close connection when data loading is finished. In-Reply-To: <484407426.1239559935074.JavaMail.jira@brutus> 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 [ https://issues.apache.org/jira/browse/CHUKWA-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698487#action_12698487 ] Cheng commented on CHUKWA-124: ------------------------------ The commit statement is in the finally block. Shall it be in the try block? If we leave it in the finally block, we should catch the exception. Otherwise if something is wrong with the commit, the close statements will never get called. > Metrics Data Loader doesn't close connection when data loading is finished. > --------------------------------------------------------------------------- > > Key: CHUKWA-124 > URL: https://issues.apache.org/jira/browse/CHUKWA-124 > Project: Hadoop Chukwa > Issue Type: Bug > Components: Data Processors > Affects Versions: 0.1.2 > Environment: Redhat EL 5.1, Java 6 > Reporter: Eric Yang > Assignee: Eric Yang > Priority: Blocker > Fix For: 0.1.2 > > Attachments: CHUKWA-124.patch > > > PostProcessManager is running as a deamon now, and jdbc connection without closing becomes a serious issue. Database loader needs to close the connection when sequence file is finished loading to the database. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.