Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 21843 invoked from network); 3 Dec 2007 13:23:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2007 13:23:06 -0000 Received: (qmail 84481 invoked by uid 500); 3 Dec 2007 13:22:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 84436 invoked by uid 500); 3 Dec 2007 13:22:54 -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 84427 invoked by uid 99); 3 Dec 2007 13:22:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Dec 2007 05:22:54 -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; Mon, 03 Dec 2007 13:22:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 24E72714236 for ; Mon, 3 Dec 2007 05:22:45 -0800 (PST) Message-ID: <4461252.1196688165132.JavaMail.jira@brutus> Date: Mon, 3 Dec 2007 05:22:45 -0800 (PST) From: "Dyre Tjeldvoll (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3198) Using setQueryTimeout will leak sections In-Reply-To: <12216627.1194818090723.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-3198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547837 ] Dyre Tjeldvoll commented on DERBY-3198: --------------------------------------- Well, it seemed safer to verify that Sections aren't leaked even when relying on implicit close. I could add a comment about that I suppose. > Using setQueryTimeout will leak sections > ----------------------------------------- > > Key: DERBY-3198 > URL: https://issues.apache.org/jira/browse/DERBY-3198 > Project: Derby > Issue Type: Bug > Components: JDBC, Network Client > Affects Versions: 10.3.1.4 > Reporter: Dyre Tjeldvoll > Assignee: Dyre Tjeldvoll > Attachments: derby-3198.v1.diff, derby-3198.v2.diff, derby-3198.v3.diff, repro.diff > > > The implementation of setQueryTimeout relies on NetStatementReply.writeSetSpecialRegister() which will allocate a dynamic section when called. No reference to this Section object is kept, and so Section.free() never gets called on it. Executing the same statment repeatedly with a query timeout set results in the client driver throwing an exception because the number of Sections exceeding 32000. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.