Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove ThreadLocal when it's no longer used #887

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

littleaj
Copy link
Contributor

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

@littleaj
Copy link
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
Contributor

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

@littleaj
Copy link
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