Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 28463 invoked from network); 16 Nov 2007 14:24:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2007 14:24:06 -0000 Received: (qmail 93371 invoked by uid 500); 16 Nov 2007 14:23:52 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 93302 invoked by uid 500); 16 Nov 2007 14:23:52 -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 93105 invoked by uid 99); 16 Nov 2007 14:23:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2007 06:23:51 -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; Fri, 16 Nov 2007 14:23:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BD2AC714243 for ; Fri, 16 Nov 2007 06:23:43 -0800 (PST) Message-ID: <33513652.1195223023771.JavaMail.jira@brutus> Date: Fri, 16 Nov 2007 06:23:43 -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_12543087 ] Dyre Tjeldvoll commented on DERBY-3198: --------------------------------------- I have now had a chance to look at DERBY-1848, but I don't think these issues are directly related. The Section issue will only occur when using the client driver, and exhausting the number of Sections produces a specific error message and call stack which I don't see in DERBY-1848. Based on the diff shown there, it seems like a statement times out unexpectedly, which I guess could happen if you happen to get a full GC (or other delay) at the wrong time. > 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 > Attachments: 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.