-
Notifications
You must be signed in to change notification settings - Fork 580
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
[FIX_KAFKA_EXECUTOR] fix executor service #3033
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works properly, thanks @elguardian
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think is a good idea to create a fixed number of thread.
According to ThreadPoolExecutor documentation, new threads will be created only if needed. And removed once they are idle for a while.
With this change, we might have a number of threads forever idle when there is not event burst (also the name of the property will be inaccurate)
Lets discuss it a bit to find out why the pool is not working as expected right now, I need to understand that.
Ok, I misundertood the doc (bold is mine)
), And together with |
Co-authored-by: Enrique <[email protected]>
The current approach behaves like monothread.