Derby
  1. Derby
  2. DERBY-3037

Language ResultSet.finish() is called even when the ResultSet is going to be re-used.

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 10.4.1.3
    • Fix Version/s: 10.3.3.1
    • Component/s: SQL
    • Labels:
      None
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached

      Description

      DERBY-827 (correctly) changed the lifetime of the language ResultSet tree to be the lifetime of the activation, but did not fix up the correct calls to ResultSet.close() and ResultSet.finish().

      A language ResultSet's lifetime should be driven by the activation, so activation.close() should call finish() on its ResultSet.

      EmbedResultSet should call close on its language ResultSet (theResults field) when the JDBC ResultSet is closed, it should not be calling finish() on its ResultSet.

      See comments in DERBY-827 for some more details and issues.

      1. Derby_3037_AlterTableConstantActionChanges_v1_diff.txt
        1 kB
        Mamta A. Satoor
      2. Derby_3037_AlterTableConstantActionChanges_v1_stat.txt
        0.2 kB
        Mamta A. Satoor
      3. DERBY3037_patch_not_ready_for_commit_v2_diff.txt
        1.0 kB
        Mamta A. Satoor
      4. DERBY3037_patch_not_ready_for_commit_v2_stat.txt
        0.2 kB
        Mamta A. Satoor
      5. DERBY_3304_Repro.java
        2 kB
        Mamta A. Satoor

        Issue Links

          Activity

          Daniel John Debrunner created issue -
          Daniel John Debrunner made changes -
          Field Original Value New Value
          Link This issue relates to DERBY-827 [ DERBY-827 ]
          Daniel John Debrunner made changes -
          Summary Language ResultSet.finish() is called eevn when the ResultSet is going to be re-used. Language ResultSet.finish() is called even when the ResultSet is going to be re-used.
          Mamta A. Satoor made changes -
          Assignee Mamta A. Satoor [ mamtas ]
          Mamta A. Satoor made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 10.3.2.2 [ 12312885 ]
          Fix Version/s 10.4.0.0 [ 12312540 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Daniel John Debrunner made changes -
          Status Resolved [ 5 ] Reopened [ 4 ]
          Resolution Fixed [ 1 ]
          Mamta A. Satoor made changes -
          Derby Info [Patch Available]
          Dyre Tjeldvoll made changes -
          Derby Info [Patch Available]
          Mamta A. Satoor made changes -
          Mamta A. Satoor made changes -
          Attachment DERBY_3304_Repro.java [ 12373771 ]
          Andrew McIntyre made changes -
          Fix Version/s 10.3.3.1 [ 12313143 ]
          Fix Version/s 10.3.2.2 [ 12312885 ]
          Fix Version/s 10.4.1.3 [ 12313111 ]
          Rick Hillegas made changes -
          Urgency Normal
          Issue & fix info [Repro attached]
          Mamta A. Satoor made changes -
          Assignee Mamta A. Satoor [ mamtas ]
          Gavin made changes -
          Workflow jira [ 12411921 ] Default workflow, editable Closed status [ 12802534 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Daniel John Debrunner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development