Skip to content

remove ThreadLocal when it's no longer used#887

Merged
littleaj merged 1 commit into
masterfrom
removeThreadLocalOnShutdown
Mar 29, 2019
Merged

remove ThreadLocal when it's no longer used#887
littleaj merged 1 commit into
masterfrom
removeThreadLocalOnShutdown

Conversation

@littleaj

Copy link
Copy Markdown
Contributor

I found this during testing. We should include this in the next release.

@littleaj littleaj requested review from dhaval24 and reyang March 28, 2019 23:32
@littleaj

Copy link
Copy Markdown
Contributor Author

FYI, backoffManager extends ThreadLocal...

If we need ThreadLocal in the future, let's opt for field instead of a subclass.

@littleaj littleaj added this to the 2.4.0 milestone Mar 29, 2019
@dhaval24

Copy link
Copy Markdown
Contributor

curious why is TLS needed in backoff manager? was this intended or it seems more of bug?

@littleaj

Copy link
Copy Markdown
Contributor Author

@dhaval24 I think it is needed, but I can't speak to why. When I was running tests in tomcat, there were 5 of these flagged by the leak scanner. So, I assume it's from multiple threads. Regardless, as long as we are using it; it needs to be removed as part of cleanup.

@littleaj littleaj merged commit 71d58c4 into master Mar 29, 2019
@littleaj littleaj deleted the removeThreadLocalOnShutdown branch March 29, 2019 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants