-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Stale events 53411 #53412
Stale events 53411 #53412
Conversation
Looks good but we are waiting on some tests for this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extraneous conditional
else:
too_long_in_queue = False
might be unneeded, since line 1272 resets to False, unless I missed the need for it, in which case let me know what I missed.
otherwise looks good,
After banging my head against this for some time I think we will need to resort to a manual test.
If there is an approach I am unaware of I'm happy to explore it. |
Both of those points sound accurate to me. I would love it if we had an automated suite that roughly does what we do with the current integration suite, but instead was more like just running a salt orchestration, and we verified that each of the state result was what we expected. Basically an automated manual test suite 😂 |
K, fixed the doc test failure I think. |
And rebased against 2018.3. I think this will be ready for merge if all the tests pass again. |
@cro I think we also need some tests, or is this fixing some existing tests? |
I would like to write tests, but according to my understanding of the test suite as it stands:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve this merge as an exception to the tests writing rule.
Re-run all |
What does this PR do?
Adds
event_listen_queue_max_seconds
to fix #53411What issues does this PR fix or reference?
#53411
Previous Behavior
If
event_listen_queue
is set to large values or if it is set but the event bus is not busy enough, events can languish in the queue and cause pathological behavior (CLI reportingMinion did not return
, job results taking too long to return.New Behavior
The
event_listen_queue
will be flushed if the oldest event in the queue is older thanevent_listen_queue_max_seconds
regardless of the number of events in the queue.Commits signed with GPG?
Yes