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

[aggregator] fix thread leak + dont always start scheduler #129

Merged
merged 3 commits into from
Dec 2, 2020

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Nov 20, 2020

  • Let's not start the timer thread unless we have the aggregator actually enabled.
  • Ensure the scheduler is stopped when the aggregator is shut down.

Copy link

@prognant prognant left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 31 to 32
// protected final Map<Message, Message> aggregateMetrics = new HashMap<>();
// protected final Timer scheduler = new Timer(AGGREGATOR_THREAD_NAME, true);

Choose a reason for hiding this comment

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

Shouldn't we remove those two lines ?

@truthbk truthbk force-pushed the jaime/aggrleak branch 4 times, most recently from dc80b7e to dcab4c4 Compare December 2, 2020 15:50
@truthbk truthbk merged commit bd4bbbb into master Dec 2, 2020
@truthbk truthbk deleted the jaime/aggrleak branch December 2, 2020 17:06
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