Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 8087 invoked from network); 23 Apr 2009 08:51:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Apr 2009 08:51:09 -0000 Received: (qmail 60022 invoked by uid 500); 23 Apr 2009 08:51:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 59969 invoked by uid 500); 23 Apr 2009 08:51:08 -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 59961 invoked by uid 99); 23 Apr 2009 08:51:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 08:51:08 +0000 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; Thu, 23 Apr 2009 08:51:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B1341234C046 for ; Thu, 23 Apr 2009 01:50:47 -0700 (PDT) Message-ID: <1667386101.1240476647724.JavaMail.jira@brutus> Date: Thu, 23 Apr 2009 01:50:47 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-4056) Space is not reclaimed when attempting to insert row that violates UNIQUE constraint In-Reply-To: <578532343.1234520159660.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen closed DERBY-4056. ------------------------------------- Resolution: Duplicate This is a duplicate of DERBY-691. Closing as such. > Space is not reclaimed when attempting to insert row that violates UNIQUE constraint > ------------------------------------------------------------------------------------ > > Key: DERBY-4056 > URL: https://issues.apache.org/jira/browse/DERBY-4056 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.4.2.0, 10.5.0.0 > Reporter: Knut Anders Hatlen > Attachments: InsertDuplicateKey.java > > > If you try to insert a row which would violate a unique constraint, > the insert is rolled back, but the space is not reclaimed. > This was mentioned in a comment to DERBY-4028 (26/Jan/09): > > Out of curiosity, I tried this code: > > > > s.execute("create table d4028(x int unique)"); > > while (true) { > > try { > > s.execute("insert into d4028 values 1"); > > } catch (SQLException e) { > > System.out.println(e); > > } > > } > > > > Even though it only inserts one row, the disk footprint just keeps > > growing. It's the disk footprint of the table that's growing, though, > > not the index, so it looks like the free space in the index is reused. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.