Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 65761 invoked from network); 10 Jan 2008 19:45:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2008 19:45:56 -0000 Received: (qmail 12104 invoked by uid 500); 10 Jan 2008 19:45:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 11880 invoked by uid 500); 10 Jan 2008 19:45:44 -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 11871 invoked by uid 99); 10 Jan 2008 19:45:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 11:45:44 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 19:45:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C2ABF714233 for ; Thu, 10 Jan 2008 11:45:34 -0800 (PST) Message-ID: <17706568.1199994334795.JavaMail.jira@brutus> Date: Thu, 10 Jan 2008 11:45:34 -0800 (PST) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-3247) Activation for a dynamic ResultSet created from an Prepared/CallableStatement will not be closed until garbage collection indicates it is unused to the LCC and the LCC closes it In-Reply-To: <23015867.1196783983368.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-3247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel John Debrunner closed DERBY-3247. ---------------------------------------- Resolution: Fixed Fix Version/s: 10.3.2.2 Revision: 610895 in 10.3 branch. > Activation for a dynamic ResultSet created from an Prepared/CallableStatement will not be closed until garbage collection indicates it is unused to the LCC and the LCC closes it > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-3247 > URL: https://issues.apache.org/jira/browse/DERBY-3247 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.3.1.4, 10.4.0.0 > Reporter: Daniel John Debrunner > Assignee: Daniel John Debrunner > Priority: Minor > Fix For: 10.3.2.2, 10.4.0.0 > > Attachments: derby3247_diff.txt > > > In a Java procedure called from SQL any dynamic ResultSets that are created using a PreparedStatement or CallableStatement leave their activations open until : > - the statement that created it is garbage collected (which requires the outer statement to be garbage collected) > - and the LCC processes unused Activations. > Dynamic ResultSets that are created by a Statement object are handled correctly because they are marked single use activation and thus the close of the ResultSet also closes the activation. > Fix is to mark the activation as single use in EmbedResultSet when the EmbedResultSet is marked as being a dynamic ResultSet. This will then lead to the close of the ResultSet also closing the activation. > Can't see how to write a test for this, I can see the activations stacking up in a debugger, but typically there will be no visible user impact. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.