Derby
  1. Derby
  2. DERBY-4432

Memory leak when attempting to boot non-existing database with the in-memory back end

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.5.3.0, 10.6.1.0
    • Fix Version/s: 10.5.3.1, 10.6.1.0
    • Component/s: Store
    • Labels:
      None
    • Environment:
      In-memory back end and large amount of boot attempts of non-existing databases.
    • Issue & fix info:
      Release Note Needed

      Description

      When attempting to boot a non-existing database with the in-memory back end, a DataStore is created and referenced by a map. Since the database doesn't exist, Derby won't use the DataStore again and it will hang around indefinitely in VFMemoryStorageFactory (or until the same database is actually created, in which case the data store will be used).

      FYI, storage factory instances are instantiated liberally, including for the same service (i.e. six instances of VFMemoryStorageFactory may be created to boot "jdbc:derby:memory:myDB").

      1. derby-4432-1a-mem_leak_fix.diff
        7 kB
        Kristian Waagan
      2. derby-4432-1a-mem_leak_fix.stat
        0.2 kB
        Kristian Waagan
      3. releaseNote.html
        4 kB
        Kristian Waagan

        Issue Links

          Activity

          Kristian Waagan created issue -
          Kristian Waagan made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Kristian Waagan made changes -
          Attachment derby-4432-1a-mem_leak_fix.diff [ 12423909 ]
          Attachment derby-4432-1a-mem_leak_fix.stat [ 12423910 ]
          Kristian Waagan made changes -
          Issue & fix info [Patch Available]
          Kristian Waagan made changes -
          Link This issue is related to DERBY-4428 [ DERBY-4428 ]
          Kristian Waagan made changes -
          Fix Version/s 10.6.0.0 [ 12313727 ]
          Kristian Waagan made changes -
          Attachment releaseNote.html [ 12424709 ]
          Kristian Waagan made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Issue & fix info [Patch Available] [Release Note Needed]
          Fix Version/s 10.5.3.1 [ 12314182 ]
          Resolution Fixed [ 1 ]
          Kristian Waagan made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Workflow jira [ 12481097 ] Default workflow, editable Closed status [ 12800839 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development