Log error when reactor tasks go to a full queue#48775
Merged
cachedout merged 7 commits intoAug 14, 2018
Merged
Conversation
terminalmage
suggested changes
Jul 27, 2018
|
|
||
| if ret is False: | ||
| log.error('Reactor \'%s\' failed to execute %s \'%s\': ' | ||
| 'TaskPool queue is full!' |
Contributor
There was a problem hiding this comment.
There is no space between this sentence and the next. A space should be added before Consider.
Contributor
There was a problem hiding this comment.
I'm not sure I totally follow the logic of this. This looks more to me like it's evaluating the return from the wrapped function call itself where False could be a totally legitimiate value. What am I missing here?
Contributor
Author
There was a problem hiding this comment.
Sure, from what I can see, False is only returned when the queue is full. As per current behavior, we will right now silently fail to insert something on the queue. The only behavior I am adding is a log message when the queue is full. Otherwise, continue as per today.
cachedout
approved these changes
Aug 10, 2018
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.

Fixes #46431
What does this PR do?
Check return values of fire_async, the only possible return of False is if queue is full.
What issues does this PR fix or reference?
46431
Previous Behavior
Silently ignore failure to inject a task into a full queue
New Behavior
Only adds a log message
Tests written?
No
Commits signed with GPG?
No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.