Fix log statement 'failed to exit' timeout accuracy#42488
Merged
Conversation
log statement should reflect how long it actually waited, not how long it theoretically could wait based on the 'seconds' integer passed in. Signed-off-by: Cam <[email protected]>
sparrc
force-pushed
the
log-fix-wait-timeout
branch
from
June 8, 2021 20:38
131b311 to
d15ce13
Compare
Member
|
Ah, yes, looks like we missed that in #41586. CI failure; is unrelated (tracked in #42458) |
tianon
approved these changes
Jun 8, 2021
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.
log statement should reflect how long it actually waited, not how long
it theoretically could wait based on the 'seconds' integer passed in.
- What I did
If killPossiblyDeadProcess fails then
waitis modified to only wait 2 seconds rather than keeping the original timeout ofsecondsSince this log message was still logging
seconds, this could lead to these strange messages in the logs (notice how the log message says it waited 30 seconds, but the message was logged only 2 seconds later):After this change the log messages accurately reflects that it only waited 2 seconds:
- How to verify it
modify code to always return error from
killWithSignal- Description for the changelog
NA (follow-up to #41588)
- A picture of a cute animal (not mandatory but encouraged)