[
https://issues.apache.org/jira/browse/AVRO-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16824985#comment-16824985
]
Werner Daehn commented on AVRO-1595:
------------------------------------
Yes and no. Yes, it does cleanup itself. But when you e.g. shutdown your web
application these threads have to be shut down immediately, not eventually.
Today the tomcat does complain about a potential memory leak as the threads
remain active.
So either the "WeakIdentityHashMap will automatically be removed" within
subseconds or there is an explicit close method.
> Give access to remove threadlocal values
> ----------------------------------------
>
> Key: AVRO-1595
> URL: https://issues.apache.org/jira/browse/AVRO-1595
> Project: Apache Avro
> Issue Type: Improvement
> Components: java
> Reporter: Bryan Baugher
> Priority: Minor
>
> Certain JVM containers like tomcat re-use threads when re-deploying
> applications which can leave behind threadlocal values. It would be great if
> there were something that could be called on shutdown to remove these.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)