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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              huangyiminghappy@163.com huangyiming

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment