[
https://issues.apache.org/jira/browse/DERBY-4895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930282#action_12930282
]
Dag H. Wanvik commented on DERBY-4895:
--------------------------------------
Sadly, the lcc isn't necessarily available, cf this assert on finding an lcc
from context:
Caused by: org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED
at
org.apache.derby.shared.common.sanity.SanityManager.ASSERT(SanityManager.java:98)
at
org.apache.derby.iapi.sql.dictionary.TableDescriptor.referencedColumnMapPut(TableDescriptor.java:144)
at
org.apache.derby.iapi.sql.dictionary.TableDescriptor.setReferencedColumnMap(TableDescriptor.java:375)
at
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getTableDescriptor(DataDictionaryImpl.java:2034)
at
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.faultInTabInfo(DataDictionaryImpl.java:9062)
at
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.getNonCoreTI(DataDictionaryImpl.java:8865)
at
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.addDescriptor(DataDictionaryImpl.java:1840)
at
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.createSystemProcedureOrFunction(DataDictionaryImpl.java:9823)
at
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.createSystemProcedureOrFunction(DataDictionaryImpl.java:9879)
at
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.create_SYSIBM_procedures(DataDictionaryImpl.java:10584)
at
org.apache.derby.impl.sql.catalog.DataDictionaryImpl.boot(DataDictionaryImpl.java:737)
at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1979)
at
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:333)
at
org.apache.derby.impl.services.monitor.BaseMonitor.startModule(BaseMonitor.java:531)
at
org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Monitor.java:427)
at org.apache.derby.impl.db.BasicDatabase.boot(BasicDatabase.java:211)
at
org.apache.derby.impl.services.monitor.BaseMonitor.boot(BaseMonitor.java:1979)
at
org.apache.derby.impl.services.monitor.TopService.bootModule(TopService.java:333)
at
org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1816)
at
org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(BaseMonitor.java:1002)
at
org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Monitor.java:596)
at
org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(EmbedConnection.java:2528)
> Thread local TableDescriptor#referencedColumnMap is not set to null when
> connection closes.
> -------------------------------------------------------------------------------------------
>
> Key: DERBY-4895
> URL: https://issues.apache.org/jira/browse/DERBY-4895
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.5.1.1, 10.5.2.0, 10.5.3.0, 10.6.1.0, 10.6.2.1
> Reporter: Dag H. Wanvik
> Priority: Minor
>
> > 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/%[email protected]%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.tabledescripto...@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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.