[ https://issues.apache.org/jira/browse/KAFKA-10502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guozhang Wang updated KAFKA-10502: ---------------------------------- Description: When setting Threadlocal to null it may create a memory leak, you can see the link: [https://stackoverflow.com/questions/12424838/threadlocal-remove], so I think we should invoke its remove instead was: Threadlocal may can not set null,because it may create a memory leak, you can see the link: [https://stackoverflow.com/questions/12424838/threadlocal-remove],so I think weather can invoke thread local.remove instead > Threadlocal may can not set null,because it may create a memory leak > --------------------------------------------------------------------- > > Key: KAFKA-10502 > URL: https://issues.apache.org/jira/browse/KAFKA-10502 > Project: Kafka > Issue Type: Bug > Reporter: huangyiming > Priority: Major > > When setting Threadlocal to null it may create a memory leak, you can see the > link: > [https://stackoverflow.com/questions/12424838/threadlocal-remove], so I think > we should invoke its remove instead -- This message was sent by Atlassian Jira (v8.3.4#803005)