-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[core] Graceful shutdown in TaskEventBuffer destructor #35857
[core] Graceful shutdown in TaskEventBuffer destructor #35857
Conversation
This part from Stop(), is this still valid? Maybe you should check if this is nullptr or not |
Also what's the error message when this issue comes up? I am a little worried this won't actually fix the issue depending on the destructor order. Maybe it is better adding shutdown flag and make periodic job no-op when shutdown == true? |
or have you verified this fixes the issue manually? |
…ix-descturtor-task-event-buffer
…ix-descturtor-task-event-buffer
Yes - i verified by running some workload (microbenchmars) and see the error not showing up. |
…5857) When the core worker quick exits, there's a chance that the additional thread owned by the TaskEventBufferImpl hasn't been joined yet, resulting in errors in the stacktrace. Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Why are these changes needed?
When the core worker quick exits, there's a chance that the additional thread owned by the TaskEventBufferImpl hasn't been joined yet, resulting in errors in the stacktrace.
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.