engine: do not stall the host command queue on a failed send in Agent… - #14040
engine: do not stall the host command queue on a failed send in Agent…#14040nagaboinaramgopal wants to merge 1 commit into
Conversation
b280ae5 to
b42f357
Compare
b42f357 to
dab7711
Compare
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.20 #14040 +/- ##
============================================
+ Coverage 16.34% 17.21% +0.86%
- Complexity 13574 13580 +6
============================================
Files 5669 5264 -405
Lines 501368 468343 -33025
Branches 60903 55005 -5898
============================================
- Hits 81964 80632 -1332
+ Misses 410219 378694 -31525
+ Partials 9185 9017 -168
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 19095 |
|
@nagaboinaramgopal , an compile error in your test code: can you have a look? |
…Attache.sendNext When sending the next queued request threw AgentUnavailableException, the request was cancelled but _currentSequence was still set to that dead sequence. No answer ever arrives for a cancelled command, so sendNext was never driven again and every later in-sequence command to the host queued behind it and timed out until the attache was rebuilt. Advance _currentSequence only on a successful send, and on failure move on to the next queued request.
dab7711 to
4d8e427
Compare
fixed and pushed, Thanks Daan |
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 19123 |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 19128 |
|
@nagaboinaramgopal , as you are not referring an issue, can you add a reporduction scheme/scenario? |
No linked issue on this one, it came from following the in-sequence command path in For a given host, in-sequence commands run one at a time, and Sequence that stalls the queue:
On the unpatched code the test fails, which is exactly the stall: With the change it passes (the queued command is dispatched instead of the queue parking on the cancelled one): I could not tie it to a specific cluster incident, since it needs a send failure at the exact moment the queue is drained, but that is the path and the test reproduces it deterministically. |
Description
When sending the next queued request threw AgentUnavailableException, the request
was cancelled but _currentSequence was still set to that dead sequence. No answer
ever arrives for a cancelled command, so sendNext was never driven again and every
later in-sequence command to the host queued behind it and timed out, until the
attache was rebuilt.
Advance _currentSequence only on a successful send, and on failure move on to the
next queued request.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
How Has This Been Tested?
Added a unit test where the first queued command fails to send and asserts the
next queued command is dispatched and becomes the current sequence, instead of
stalling on the failed one. Also built the standard packages and deployed on a KVM
advanced zone.