Derby
  1. Derby
  2. DERBY-4717

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

    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)

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

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12514427 ] Default workflow, editable Closed status [ 12800247 ]
          Rick Hillegas made changes -
          Affects Version/s 10.7.1.1 [ 12315564 ]
          Affects Version/s 10.7.1.0 [ 12314971 ]
          Fix Version/s 10.7.1.1 [ 12315564 ]
          Fix Version/s 10.7.1.0 [ 12314971 ]
          Knut Anders Hatlen made changes -
          Fix Version/s 10.6.2.1 [ 12315343 ]
          Fix Version/s 10.6.2.0 [ 12315342 ]
          Kathey Marsden made changes -
          Fix Version/s 10.6.2.0 [ 12315342 ]
          Fix Version/s 10.6.1.1 [ 12314973 ]
          Kristian Waagan made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 10.4.2.1 [ 12313401 ]
          Fix Version/s 10.5.3.1 [ 12314182 ]
          Fix Version/s 10.6.1.1 [ 12314973 ]
          Fix Version/s 10.7.0.0 [ 12314971 ]
          Resolution Fixed [ 1 ]
          Kristian Waagan made changes -
          Attachment derby-4717-1b.diff [ 12448292 ]
          Lily Wei made changes -
          Attachment derby.log [ 12448238 ]
          Kristian Waagan made changes -
          Attachment derby-4717-1a.diff [ 12448204 ]
          Kristian Waagan made changes -
          Field Original Value New Value
          Link This issue blocks DERBY-4709 [ DERBY-4709 ]
          Kristian Waagan created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development