Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 56078 invoked from network); 13 Mar 2009 13:26:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 13:26:21 -0000 Received: (qmail 75201 invoked by uid 500); 13 Mar 2009 13:26:20 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 75180 invoked by uid 500); 13 Mar 2009 13:26:20 -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 75171 invoked by uid 99); 13 Mar 2009 13:26:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 06:26:20 -0700 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, 13 Mar 2009 13:26:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6F3B1234C045 for ; Fri, 13 Mar 2009 06:25:50 -0700 (PDT) Message-ID: <1786186379.1236950750442.JavaMail.jira@brutus> Date: Fri, 13 Mar 2009 06:25:50 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4093) Improve handling of the database temporary directory In-Reply-To: <18928483.1236948230562.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-4093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-4093: ----------------------------------- Attachment: derby-4093-1b-tmp_dir_handling.diff Patch 1b contains a few changes to the tests (make sure tests fail if exception on shutdown isn't thrown, and reload the engine code after engine shutdown). > Improve handling of the database temporary directory > ---------------------------------------------------- > > Key: DERBY-4093 > URL: https://issues.apache.org/jira/browse/DERBY-4093 > Project: Derby > Issue Type: Sub-task > Components: Store > Affects Versions: 10.5.0.0 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Fix For: 10.5.0.0 > > Attachments: derby-4093-1a-tmp_dir_handling.diff, derby-4093-1b-tmp_dir_handling.diff > > > The problem reported by Knut Anders Hatlen in DERBY-646 is caused by improper handling of the temporary directory created for the database. > A NullPointerException was thrown on database shutdown. > After studying the code, I believe it is wise to follow the approach taken by the base storage factory; > o locate the temporary directory within the database directory > (i.e. for database 'mydb' this will by 'mydb/tmp') > o don't create the temporary directory before Derby supplies a unique name to the storage factory -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.