Shutdown Kronos clock only after executors#1127
Merged
0xnm merged 1 commit intoNov 7, 2022
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1127 +/- ##
===========================================
- Coverage 83.30% 83.25% -0.05%
===========================================
Files 273 273
Lines 9372 9372
Branches 1504 1504
===========================================
- Hits 7807 7802 -5
+ Misses 1149 1148 -1
- Partials 416 422 +6
|
mariusc83
approved these changes
Nov 4, 2022
xgouchet
approved these changes
Nov 7, 2022
0xnm
deleted the
nogorodnikov/shutdown-kronos-clock-after-the-executors
branch
November 7, 2022 12:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
It is possible that Kronos is accessed from tasks still running on executors (like from telemetry caught during some I/O operation) and it will lead to the
IllegalStateException, like here:This change modifies SDK shutdown sequence, so that Kronos is shutdown only after all executors are shut down, meaning there is no tasks running left.
Review checklist (to be filled by reviewers)