Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 99718 invoked from network); 9 Jan 2009 17:12:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2009 17:12:24 -0000 Received: (qmail 90453 invoked by uid 500); 9 Jan 2009 17:12:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 90257 invoked by uid 500); 9 Jan 2009 17:12:23 -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 89862 invoked by uid 99); 9 Jan 2009 17:12:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2009 09:12:22 -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, 09 Jan 2009 17:12:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B3CA6234C498 for ; Fri, 9 Jan 2009 09:11:59 -0800 (PST) Message-ID: <596664317.1231521119735.JavaMail.jira@brutus> Date: Fri, 9 Jan 2009 09:11:59 -0800 (PST) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2649) An unsuccessful boot attempt of an booted database can potentially delete files in the temp directory that are in use. In-Reply-To: <11473526.1179218236123.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-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-2649: ---------------------------------- Derby Categories: [High Value Fix] > An unsuccessful boot attempt of an booted database can potentially delete files in the temp directory that are in use. > ----------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-2649 > URL: https://issues.apache.org/jira/browse/DERBY-2649 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.2.2.0 > Reporter: Suresh Thalamati > > Lock to prevent multi-jvm boot is acquired after the temp directory is cleaned up in BaseDataFileDirectory.java boot() method. Because lock is acquired later , an unsuceessfule boot attempt could potentiall delete file in the > temp directory that are in use. > See : BaseDataFileDirectory.java : boot() > storageFactory = > ps.getStorageFactoryInstance( > true, > dataDirectory, > startParams.getProperty( > Property.STORAGE_TEMP_DIRECTORY, > PropertyUtil.getSystemProperty( > Property.STORAGE_TEMP_DIRECTORY)), > identifier.toANSIidentifier()); > Above call to get the storage factory seems to cleanup the temp directory, and the method is invode before calling the > the method that prevents multi-jvm boot of an database. > if (!isReadOnly()) // read only db, not interested in filelock > getJBMSLockOnDB(identifier, uf, dataDirectory); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.