Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10502

Threadlocal may can not set null,because it may create a memory leak

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None

      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 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                huangyiminghappy@163.com huangyiming
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: