Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 86140 invoked from network); 7 Oct 2008 18:03:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2008 18:03:07 -0000 Received: (qmail 30051 invoked by uid 500); 7 Oct 2008 18:03:06 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 30015 invoked by uid 500); 7 Oct 2008 18:03:06 -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 30004 invoked by uid 99); 7 Oct 2008 18:03:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 11:03:06 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE 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; Tue, 07 Oct 2008 18:02:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 90906234C210 for ; Tue, 7 Oct 2008 11:02:46 -0700 (PDT) Message-ID: <537177189.1223402566591.JavaMail.jira@brutus> Date: Tue, 7 Oct 2008 11:02:46 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3883) LOBStreamControl.replaceBytes() leaves temporary files open In-Reply-To: <379181060.1222429068949.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-3883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-3883: ---------------------------------- Fix Version/s: 10.3.3.1 > LOBStreamControl.replaceBytes() leaves temporary files open > ----------------------------------------------------------- > > Key: DERBY-3883 > URL: https://issues.apache.org/jira/browse/DERBY-3883 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.4.2.0, 10.5.0.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Fix For: 10.3.3.1, 10.4.2.1, 10.5.0.0 > > Attachments: d3883.diff, Derby3883.java > > > I haven't seen any problems as a result of this, but the code that closes and deletes the old temporary file in LOBStreamControl.replaceBytes() looks wrong to me. > When replaceBytes() is called on a lob that has been materialized into a temporary file, it will create a new file and copy the relevant parts from the old file. But the old file is only closed and deleted if the block that is replaced ends before the last byte of the lob. I believe that the old file should be closed and deleted also when we replace a block that ends at or after the last byte of the original lob. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.