db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Thalamati (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1039) Database creation should fail if specified log device path already exists
Date Fri, 21 Apr 2006 00:02:06 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1039?page=all ]

Suresh Thalamati updated DERBY-1039:

    Attachment: derby-1039.diff


-- 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. 
TESTS : derbyall test suite passed on Windows XP/JDK142/ with sane classes
        directory and insane jars. 

It would be great if some can review and commit this patch. 

svn stat:
M      java\engine\org\apache\derby\impl\store\raw\log\LogToFile.java
M    java\testing\org\apache\derbyTesting\functionTests\tests\store\copyfiles.ant
A      java\testing\org\apache\derbyTesting\functionTests\tests\store\LogDeviceTest.java
A      java\testing\org\apache\derbyTesting\functionTests\tests\store\LogDeviceTest_app.properties
A      java\testing\org\apache\derbyTesting\functionTests\master\LogDeviceTest.out
M      java\testing\org\apache\derbyTesting\functionTests\suites\storemore.runall

> 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:,,
>     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:
For more information on JIRA, see:

View raw message