Derby
  1. Derby
  2. DERBY-5729

Replication tests keep references to connections after completion

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.9.1.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Test
    • Labels:
      None

      Description

      The base class for the replication tests, ReplicationRun, keeps references to connections used during the test also after the test has completed. The connections are referenced from these fields:

      • masterConn
      • slaveConn
      • startSlaveException (which references a connection indirectly via client.am.SqlException -> client.am.Sqlca)
      1. d5729-1a.diff
        27 kB
        Knut Anders Hatlen

        Activity

        Knut Anders Hatlen created issue -
        Knut Anders Hatlen made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Knut Anders Hatlen added a comment -

        The attach cleans up the fields that are no longer needed after the test has completed. Specifically, it

        • closes connections in tearDown()
        • nulls out references to connections, and to other objects that are no longer needed, in tearDown()
        • removes the fields masterServer and slaveServer completely since they are always null
        Show
        Knut Anders Hatlen added a comment - The attach cleans up the fields that are no longer needed after the test has completed. Specifically, it closes connections in tearDown() nulls out references to connections, and to other objects that are no longer needed, in tearDown() removes the fields masterServer and slaveServer completely since they are always null
        Knut Anders Hatlen made changes -
        Attachment d5729-1a.diff [ 12524836 ]
        Knut Anders Hatlen made changes -
        Issue & fix info Patch Available [ 10102 ]
        Hide
        Knut Anders Hatlen added a comment -

        Committed revision 1332133.

        Show
        Knut Anders Hatlen added a comment - Committed revision 1332133.
        Knut Anders Hatlen made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Issue & fix info Patch Available [ 10102 ]
        Fix Version/s 10.9.0.0 [ 12316344 ]
        Resolution Fixed [ 1 ]
        Gavin made changes -
        Workflow jira [ 12664612 ] Default workflow, editable Closed status [ 12796982 ]

          People

          • Assignee:
            Knut Anders Hatlen
            Reporter:
            Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development