Derby
  1. Derby
  2. DERBY-4895

Thread local TableDescriptor#referencedColumnMap is not removed from app threads when Derby is shut down

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1
    • Fix Version/s: 10.5.3.2, 10.6.2.4, 10.7.1.1
    • Component/s: SQL
    • Labels:
      None
    • Bug behavior facts:
      Regression, Seen in production

      Description

      > This has been seen to cause error messages in TomCat, cf. this quote from a mail on derby-user:
      >
      > http://mail-archives.apache.org/mod_mbox/db-derby-user/201011.mbox/%3C7800E37B639BC345BC2AB40980B7C529180FB525@MERCMBX03R.na.SAS.com%3E
      >
      > SEVERE: The web application [/MyApp] created a ThreadLocal with key of type [org.apache.derby.iapi.sq\
      > l.dictionary.TableDescriptor$1] (value [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1@d133a3])\
      > and a value of type [java.util.WeakHashMap] (value [{=

      {1, 2, 3, 4}

      , =null, =null}]) but failed to remo\
      > ve it when the web application was stopped. This is very likely to create a memory leak.

      1. DERBY-4895_10_5_diff.txt
        7 kB
        Kathey Marsden
      2. derby-4895_10_6_diff.txt
        7 kB
        Kathey Marsden
      3. derby-4895-a.stat
        0.2 kB
        Dag H. Wanvik
      4. derby-4895-a.diff
        7 kB
        Dag H. Wanvik

        Issue Links

          Activity

          Dag H. Wanvik created issue -
          Dag H. Wanvik made changes -
          Field Original Value New Value
          Link This issue is related to DERBY-2861 [ DERBY-2861 ]
          Dag H. Wanvik made changes -
          Attachment derby-4895-a.diff [ 12459239 ]
          Attachment derby-4895-a.stat [ 12459240 ]
          Dag H. Wanvik made changes -
          Assignee Dag H. Wanvik [ dagw ]
          Dag H. Wanvik made changes -
          Summary Thread local TableDescriptor#referencedColumnMap is not set to null when connection closes. Thread local TableDescriptor#referencedColumnMap is not removed from app threads when Derby is shut down
          Issue & fix info [Patch Available]
          Dag H. Wanvik made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Dag H. Wanvik made changes -
          Fix Version/s 10.7.1.0 [ 12314971 ]
          Issue & fix info [Patch Available]
          Rick Hillegas made changes -
          Fix Version/s 10.7.1.1 [ 12315564 ]
          Fix Version/s 10.7.1.0 [ 12314971 ]
          Kathey Marsden made changes -
          Link This issue is required by DERBY-4994 [ DERBY-4994 ]
          Kathey Marsden made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Kathey Marsden made changes -
          Assignee Dag H. Wanvik [ dagw ] Kathey Marsden [ kmarsden ]
          Kathey Marsden made changes -
          Attachment derby-4895_10_6_diff.txt [ 12470527 ]
          Kathey Marsden made changes -
          Attachment DERBY-4895_10_5_diff.txt [ 12471005 ]
          Kathey Marsden made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Assignee Kathey Marsden [ kmarsden ] Dag H. Wanvik [ dagw ]
          Fix Version/s 10.5.3.2 [ 12315436 ]
          Fix Version/s 10.6.2.3 [ 12315434 ]
          Resolution Fixed [ 1 ]
          Knut Anders Hatlen made changes -
          Link This issue relates to DERBY-5316 [ DERBY-5316 ]
          Gavin made changes -
          Workflow jira [ 12526395 ] Default workflow, editable Closed status [ 12801166 ]

            People

            • Assignee:
              Dag H. Wanvik
              Reporter:
              Dag H. Wanvik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development