db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4093) Improve handling of the database temporary directory
Date Fri, 13 Mar 2009 13:25:50 GMT

     [ 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:
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>             Fix For:
>         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

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message