Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 72286 invoked from network); 6 Feb 2009 21:21:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2009 21:21:28 -0000 Received: (qmail 83504 invoked by uid 500); 6 Feb 2009 21:21:28 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83320 invoked by uid 500); 6 Feb 2009 21:21:26 -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 83097 invoked by uid 99); 6 Feb 2009 21:21:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 13:21:25 -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; Fri, 06 Feb 2009 21:21:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D6680234C4B2 for ; Fri, 6 Feb 2009 13:21:01 -0800 (PST) Message-ID: <694819107.1233955261877.JavaMail.jira@brutus> Date: Fri, 6 Feb 2009 13:21:01 -0800 (PST) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4050) Multithreaded clob update causes growth in table that does not get reclaimed In-Reply-To: <1476477017.1233881639670.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-4050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-4050: ---------------------------------- note - the column is NUMUNFILLEDPAGES pages not NUMFILLED. See below for comments from the diag SpaceTable javadoc about what the fields mean.

The SpaceTable virtual table has the following columns:

  • CONGLOMERATENAME varchar(128) - nullable. The name of the conglomerate, which is either the table name or the index name. (Unlike the SYSCONGLOMERATES column of the same name, table ID's do not appear here).
  • ISINDEX SMALLINT - not nullable. Is not zero if the conglomerate is an index, 0 otherwise.
  • NUMALLOCATEDPAGES bigint - not nullable. The number of pages actively linked into the table. The total number of pages in the file is the sum of NUMALLOCATEDPAGES + NUMFREEPAGES.
  • NUMFREEPAGES bigint - not nullable. The number of free pages that belong to the table. When a new page is to be linked into the table the system will move a page from the NUMFREEPAGES list to the NUMALLOCATEDPAGES list. The total number of pages in the file is the sum of NUMALLOCATEDPAGES + NUMFREEPAGES.
  • NUMUNFILLEDPAGES bigint - not nullable. The number of unfilled pages that belong to the table. Unfilled pages are allocated pages that are not completely full. Note that the number of unfilled pages is an estimate and is not exact. Running the same query twice can give different results on this column.
  • PAGESIZE integer - not nullable. The size of the page in bytes for that conglomerate.
  • ESTIMSPACESAVING bigint - not nullable. The estimated space which could possibly be saved by compressing the conglomerate, in bytes.
> Multithreaded clob update causes growth in table that does not get reclaimed > ---------------------------------------------------------------------------- > > Key: DERBY-4050 > URL: https://issues.apache.org/jira/browse/DERBY-4050 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.0.0 > Reporter: Kathey Marsden > Attachments: ClobGrowth.java, derby.log.growth, derby.log.nogrowth > > > Doing a multithreaded update of a Clob table causes table growth that does not get reclaimed except by compressing the table. The reproduction has a table with two threads. One thread updates row 1 repeatedly with 33,000 character clob. The other thread updates row 2 with a small clob, "hello". The problem occurs back to 10.2 but seems much worse on trunk than 10.2. The trunk database grew to 273MB on trunk after 10000 updates of each row. The 10.2 database grew only to 25MB. If the update is synchronized there is no growth. > I will attach the repro. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.