Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 48487 invoked from network); 23 Feb 2008 19:50:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2008 19:50:02 -0000 Received: (qmail 88156 invoked by uid 500); 23 Feb 2008 19:49:57 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 87947 invoked by uid 500); 23 Feb 2008 19:49:57 -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 87938 invoked by uid 99); 23 Feb 2008 19:49:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Feb 2008 11:49:57 -0800 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; Sat, 23 Feb 2008 19:49:32 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 82716234C010 for ; Sat, 23 Feb 2008 11:49:19 -0800 (PST) Message-ID: <29632039.1203796159533.JavaMail.jira@brutus> Date: Sat, 23 Feb 2008 11:49:19 -0800 (PST) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3457) Closing a logical connection must close all associated logical statements In-Reply-To: <2005847714.1203783079733.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-3457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-3457: ----------------------------------- Attachment: derby-3457-1a-stmt_closing.stat derby-3457-1a-stmt_closing.diff 'derby-3457-1a-stmt_closing.diff' is a fix that makes closing a caching logical statement close all associated logical statements as well. One thing I'd like feedback on, is what we should do if closing a statement throws an exception? a) swallow it, abandon the logical statement and continue b) throw the exception to the user (on the first occurrence) c) catch exception, continue closing remaining statements, then rethrow exception d) Patch 1a does (a). I have a test for the issue, but it needs some polishing before I post it. It contains a number of other tests for statement pooling as well. When testing I happened to forget applying the patch that enables statement pooling, but the test still failed. I will investigate further (more testing and search JIRA) and see if there is an existing bug in the client driver (when doing connection pooling) or if my test is incorrect. Patch ready for review. > Closing a logical connection must close all associated logical statements > ------------------------------------------------------------------------- > > Key: DERBY-3457 > URL: https://issues.apache.org/jira/browse/DERBY-3457 > Project: Derby > Issue Type: Task > Components: JDBC, Network Client > Affects Versions: 10.4.0.0 > Environment: Client-server with statement pooling enabled in the client driver. > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Fix For: 10.4.0.0 > > Attachments: derby-3457-1a-stmt_closing.diff, derby-3457-1a-stmt_closing.stat > > > When a logical connection is closed, all open logical statements created by this connection must be closed. > The closing is important per the general principle of cleaning up resources, but especially so in the case of statement pooling, as not closing the logical statement can cause side effects on another logical connection (sharing the same physical connection). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.