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

Wrong connection object used in EmbedConnection.clearLOBMapping()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.3.1.4, 10.4.1.3
    • Fix Version/s: 10.3.1.4, 10.4.1.3
    • Component/s: JDBC
    • Labels:
      None
    • Bug behavior facts:
      Performance

      Description

      I think there are two bugs in EmbedConnection.clearLOBMapping():

      1) It checks if lobHashMap is non-null, but it should have checked rootConnection.lobHashMap.
      2) It calls getlobHMObj().clear() regardless of whether there is a HashMap. This creates a HashMap object even though it's not needed, and all the subsequent transactions on that connection have to perform cleanup on that object.

        Attachments

        1. lobmap.diff
          0.7 kB
          Knut Anders Hatlen
        2. lobmap2.diff
          1 kB
          Knut Anders Hatlen

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: