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

Small logging + logic clean up of concurrent collection #210

Merged
merged 3 commits into from
Feb 26, 2019

Conversation

olivielpeau
Copy link
Member

@olivielpeau olivielpeau commented Feb 25, 2019

What this PR does

See individual commit descriptions. Overall:

  • fbf7423: improvements to log entries
  • 88ed5d4: remove unused logic on CachedThreadPool creation, since the config code doesn't allow negative values for the number of threads at the moment. A future PR (for 0.27.0) will allow negative values.
  • 2180909: small fix to TaskProcessor readiness logic: before the first JMXFetch "iteration", tpe.getPoolSize() is 0, so the app would consider the pool as not ready and print out warnings + recreate the thread pool as long the first collection isn't actually kicked off.

Notes

App.processFixedStatus doesn't log anything at the moment, not sure whether logging from there would potentially spam a lot of logs, would appreciate suggestions on that.

Overall, 2180909 requires particular attention as it changes actual logic, but the other changes shouldn't require any QA.

* Remove a duplicate
* Change misleading entries
* Clarify some entries
Now that we validate that the configured number of threads is strictly
positive.
We need to compare the current number of active tasks against the max
number of threads, not the current (and likely below max) number of
threads.

Added a test assertion.
@olivielpeau olivielpeau added this to the 0.26.1 milestone Feb 25, 2019
Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

Looks good to me, let's just make sure we want to remove the unbounded thread pool power feature.

Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

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

Thank you!

@olivielpeau
Copy link
Member Author

Updated PR description with our inline discussion.

Merging!

@olivielpeau olivielpeau merged commit 1a3e5f7 into master Feb 26, 2019
@olivielpeau olivielpeau deleted the olivielpeau/concurrent-collections-log-fix branch February 26, 2019 12:15
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