Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 40772 invoked from network); 19 Nov 2007 23:31:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Nov 2007 23:31:07 -0000 Received: (qmail 13782 invoked by uid 500); 19 Nov 2007 23:30:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 13750 invoked by uid 500); 19 Nov 2007 23:30:53 -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 13741 invoked by uid 99); 19 Nov 2007 23:30:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2007 15:30:53 -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, 19 Nov 2007 23:31:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3F745714187 for ; Mon, 19 Nov 2007 15:30:43 -0800 (PST) Message-ID: <26904668.1195515043257.JavaMail.jira@brutus> Date: Mon, 19 Nov 2007 15:30:43 -0800 (PST) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-3216) do row level lock space reclamation in btree of indiv rows. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org do row level lock space reclamation in btree of indiv rows. ----------------------------------------------------------- Key: DERBY-3216 URL: https://issues.apache.org/jira/browse/DERBY-3216 Project: Derby Issue Type: Bug Components: Store Affects Versions: 10.3.1.4 Reporter: Mike Matrigali Assignee: Mike Matrigali Priority: Minor If you can't get a table level lock for btree space recovery in the post commit thread, maybe you should at least reclaim the rows on the page while you are at it. Use the same algorithm as exists in BTreeController.java. row level shrink is a different issue and won't be resolved by this. Note there have been reports of "memory" leaks associated with this issue. This is because currently if the work can not be done then we just queue it and move on. But in a stress situation one may never get the required table lock to shrink the tree and thus the queue just keeps growing. Note in many of these cases the app doesn't care if the page merge happens as it is just going to insert more rows after the merge. Also there is no need for a table level lock for a 1 page index as no merge is actually necessary. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.