-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing,job: fix NPE in TraceCollector
Previously, TraceCollector.StartIter would return a nil object if we failed to resolve nodeliveness during initialization. This led to a NPE. This change now return a TraceCollector instance with the error field set to the appropriate error, so that the validity check on the iterator can correctly handle this scenario. This change also reworks the dump trace on job cancellation test. Job cancellation semantics under stress are slightly undeterministic in terms of how many times execution of OnFailOrCancel is resumed. This makes it hard to coordinate when to check and how many trace files to expect. Fixes: #68315 Release note: None
- Loading branch information
1 parent
2317cc8
commit 8a25365
Showing
4 changed files
with
46 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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