You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Guozhang Wang (Jira)" <ji...@apache.org> on 2020/09/28 02:15:00 UTC

[jira] [Updated] (KAFKA-10502) Threadlocal may can not set null,because it may create a memory leak

     [ 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)