Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 85804 invoked from network); 27 Oct 2008 15:25:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2008 15:25:05 -0000 Received: (qmail 6198 invoked by uid 500); 27 Oct 2008 15:25:09 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5996 invoked by uid 500); 27 Oct 2008 15:25:09 -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 5985 invoked by uid 99); 27 Oct 2008 15:25:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 08:25:09 -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; Mon, 27 Oct 2008 15:24:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 53314234C237 for ; Mon, 27 Oct 2008 08:24:44 -0700 (PDT) Message-ID: <2051602399.1225121084339.JavaMail.jira@brutus> Date: Mon, 27 Oct 2008 08:24:44 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (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:all-tabpanel ] Knut Anders Hatlen resolved DERBY-3319. --------------------------------------- Resolution: Fixed > 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.