Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3789

Shutting down encrypted database with ResultSet open does not allow directory to be deleted on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 10.5.1.1
    • None
    • Services
    • None
    • High Value Fix

    Description

      If I run the attached program on Windows to create an encrypted database open a result set, shutdown and attempt to delete the directory it fails with:
      [C:]java EncryptShutdown
      Exception in thread "main" junit.framework.AssertionFailedError: encryptdb\seg0\c400.dat
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.assertTrue(Assert.java:20)
      at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDir(DropDatabaseSetup.java:130)
      at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDir(DropDatabaseSetup.java:128)
      at org.apache.derbyTesting.junit.DropDatabaseSetup.access$000(DropDatabaseSetup.java:35)
      at org.apache.derbyTesting.junit.DropDatabaseSetup$1.run(DropDatabaseSetup.java:105)
      at java.security.AccessController.doPrivileged(AccessController.java:193)
      at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatabaseSetup.java:102)
      at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatabaseSetup.java:98)
      at org.apache.derbyTesting.junit.BaseTestCase.removeDirectory(BaseTestCase.java:522)
      at EncryptShutdown.main(EncryptShutdown.java:25)

      Apparently all resources are not being released. It runs fine if the database is not encrypted.

      Attachments

        1. EncryptShutdown.java
          0.9 kB
          Katherine Marsden

        Activity

          People

            Unassigned Unassigned
            kmarsden Katherine Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: