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

[processor] shutdown the executor on cue, dont leak #126

Merged
merged 2 commits into from
Nov 12, 2020
Merged

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Nov 12, 2020

Fixes an issue with the processor shutdown; bad inheritance + previous wrong shutdown of the executor service.

This bug could range from a non-issue to a thread leak depending on the client application. Apologies for it.

Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, but LGTM overall 👍

src/main/java/com/timgroup/statsd/StatsDProcessor.java Outdated Show resolved Hide resolved
@truthbk truthbk merged commit 9a3aece into master Nov 12, 2020
@truthbk truthbk deleted the jaime/threadleak branch November 12, 2020 14:54
truthbk added a commit that referenced this pull request Nov 12, 2020
* [processor] shutdown the executor on cue, dont leak

* [processor] shutdown after setting boolean intent
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