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

Shutting down a database loaded from a jar leaves an open file reference to the jar file containing the database.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Services, Store
    • None

    Description

      The shutdown() method of JarStorageFactory probably needs to close the zipData file but adding that code changes the behaviour of shutting down such a database to report database not found instead of database shutdown.

      Even with the above method changed and the problem fixed there may be a store error in that I couldn't see any store code that calls StorageFactory.shutdown() for the data segement, in this case the database is read only since it is from a jar.

      Seen in some new test cases being added to DatabaseClassLoadingTest (in the conversion from dcl.sql)

      Attachments

        1. d2083_store_shutdown_diff.txt
          0.9 kB
          Daniel John Debrunner

        Activity

          People

            djd Daniel John Debrunner
            djd Daniel John Debrunner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: