Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-646 In-memory backend storage support
  3. DERBY-4093

Improve handling of the database temporary directory

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1
    • Fix Version/s: 10.5.1.1
    • Component/s: Store
    • Labels:
      None

      Description

      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

        Attachments

        1. derby-4093-1b-tmp_dir_handling.diff
          4 kB
          Kristian Waagan
        2. derby-4093-1a-tmp_dir_handling.diff
          4 kB
          Kristian Waagan

          Activity

            People

            • Assignee:
              kristwaa Kristian Waagan
              Reporter:
              kristwaa Kristian Waagan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: