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

Driver trace file isn't closed/released on physical connection close when specified with the traceFile attribute/setter

    XMLWordPrintableJSON

Details

    Description

      When specifying a trace file with the traceFile connection URL attribute or with the data source setter method, the handle to the trace file isn't released when the physical connection is closed.
      The problem may be specific to the implementations of ConnectionPoolDataSource and XADataSource, as using a plain data source doesn't involve reuse (i.e another mechanism may close the trace file handle).

      Two potential problems caused by this bug:
      o resource leak (i.e., too many file handles open)
      o trace files cannot be deleted on Windows (seen for DERBY-4709)

      Attachments

        1. derby.log
          66 kB
          Lily Wei
        2. derby-4717-1a.diff
          10 kB
          Kristian Waagan
        3. derby-4717-1b.diff
          10 kB
          Kristian Waagan

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: