Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 35833 invoked from network); 30 Oct 2008 23:19:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2008 23:19:07 -0000 Received: (qmail 19329 invoked by uid 500); 30 Oct 2008 23:19:10 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 19288 invoked by uid 500); 30 Oct 2008 23:19:10 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 19269 invoked by uid 99); 30 Oct 2008 23:19:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 16:19:10 -0700 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; Thu, 30 Oct 2008 23:18:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6A6C8234C25F for ; Thu, 30 Oct 2008 16:18:44 -0700 (PDT) Message-ID: <1582042408.1225408724434.JavaMail.jira@brutus> Date: Thu, 30 Oct 2008 16:18:44 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3319) Logical connections do not check if a transaction is active on close In-Reply-To: <16684247.1200408274447.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644156#action_12644156 ] Dag H. Wanvik commented on DERBY-3319: -------------------------------------- Release note looks good to me. > Logical connections do not check if a transaction is active on close > -------------------------------------------------------------------- > > Key: DERBY-3319 > URL: https://issues.apache.org/jira/browse/DERBY-3319 > Project: Derby > Issue Type: Bug > Components: JDBC, Network Client > Affects Versions: 10.3.2.1, 10.4.1.3, 10.5.0.0 > Environment: Embedded driver and client driver. > Reporter: Kristian Waagan > Assignee: Knut Anders Hatlen > Fix For: 10.5.0.0 > > Attachments: d3319-1a.diff, d3319-1a.stat, LogicalConnectionCloseActiveTransactionBug.java, releaseNote.html > > > If you call close on a logical connection, for instance as obtained through a PooledConnection, it does not check if there is an active transaction. > The close of the logical connection is allowed, and even the close of the parent PooledConnection is allowed in the client driver. This can/will cause resources to be left on the server, and later operations might fail (typically with lock timeouts because the "closed" transaction is still holding locks). > I do not know if gc will solve this eventually, but I would say the current behavior of the client driver is wrong in any case. > There is difference in the behavior between the embedded and the client driver, and there also seems to be a bug in the embedded driver. > The analysis above is a bit sketchy, so it might be required to look into the issue a bit more... > I will attach a repro (JDBC usage should be verified as well, is it legal / as intended?) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.