Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 30008 invoked from network); 25 Apr 2006 23:12:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 23:12:31 -0000 Received: (qmail 86833 invoked by uid 500); 25 Apr 2006 23:12:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 86613 invoked by uid 500); 25 Apr 2006 23:12: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 86604 invoked by uid 99); 25 Apr 2006 23:12:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 16:12:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 16:12:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B38F07142A2 for ; Tue, 25 Apr 2006 23:12:04 +0000 (GMT) Message-ID: <61476526.1146006724733.JavaMail.root@brutus> Date: Tue, 25 Apr 2006 23:12:04 +0000 (GMT+00:00) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1039) Database creation should fail if specified log device path already exists In-Reply-To: <1495038187.1140680585093.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1039?page=all ] Mike Matrigali updated DERBY-1039: ---------------------------------- reviewed and committed this patch to the trunk (initially forgot new files so commit is in 2 pieces): ------------------------------------------------------------------------ r397014 | mikem | 2006-04-25 16:09:04 -0700 (Tue, 25 Apr 2006) | 5 lines DERBY-1039, committed on behalf of Suresh Thalamati New tests that should have been part of previous checkin for DERBY-1039 fix. ------------------------------------------------------------------------ r397011 | mikem | 2006-04-25 16:02:26 -0700 (Tue, 25 Apr 2006) | 8 lines DERBY-1039, committed on behalf of Suresh Thalamati -- database create will fail with error if the user specified logDevice location already contains non-empty "log" dir at that location. -- added a new test that tests database creation with logDevice location with absolute paths and also the above expected error case. > Database creation should fail if specified log device path already exists > ------------------------------------------------------------------------- > > Key: DERBY-1039 > URL: http://issues.apache.org/jira/browse/DERBY-1039 > Project: Derby > Type: Improvement > Components: Newcomer, Store > Versions: 10.2.0.0, 10.1.2.1, 10.3.0.0 > Reporter: Knut Anders Hatlen > Assignee: Suresh Thalamati > Attachments: derby-1039.diff, logd.sql > > If a database is created with logDevice pointing to a directory > containing old log files, one might experience errors during recovery. > ERROR XSDB4: Page Page(0,Container(0, 768)) is at version 2,657, the > log file contains change version 2,715, either there are log records > of this page missing, or this page did not get written out to disk > properly. > To avoid this problem, database creation should fail if logDevice is > pointing to an existing directory. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira