Repository navigation
fix: Fail the check list when the nomination of a pair fails. - #331
Open
JonathanLennox wants to merge 1 commit into
Open
JonathanLennox wants to merge 1 commit into
JonathanLennox wants to merge 1 commit into
Conversation
The controlling agent nominates only one pair for a component. When the connectivity check which nominates it failed, the pair went to the Failed state and nothing else happened: no other pair was nominated, the valid list still had a pair for the component, and so the check list stayed Running and the agent never completed or failed. When a check which we sent with USE-CANDIDATE as the controlling agent fails (it times out, gets an error response, a non-symmetric response or a response with no mapped address, or cannot be sent), and no pair has been selected for the component yet, remove the pair from the valid list and set the check list to Failed, as RFC 8445 section 7.2.5.3.4 requires. The controlled agent is not changed: a controlling agent which follows RFC 5245 can send USE-CANDIDATE on every check, and one of those checks failing is not a failure of the session.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## fix-double-nomination #331 +/- ##
===========================================================
+ Coverage 44.36% 44.56% +0.19%
- Complexity 1462 1476 +14
===========================================================
Files 166 166
Lines 11227 11254 +27
Branches 1663 1671 +8
===========================================================
+ Hits 4981 5015 +34
+ Misses 5623 5620 -3
+ Partials 623 619 -4
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
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.
Stacked on #329; only the second commit is new here.
Problem
The controlling agent nominates only one pair for a component. When the connectivity check which nominates it failed, the pair went to the Failed state and nothing else happened: no other pair was nominated, the valid list still had a pair for the component, and so the check list stayed Running and the agent never completed or failed.
Change
When a check which we sent with
USE-CANDIDATEas the controlling agent fails, and no pair has been selected for the component yet, the pair is removed from the valid list and the check list is set to Failed, as RFC 8445 section 7.2.5.3.4 requires. A check fails when it times out, gets an error response other than a role conflict, gets a non-symmetric response or a response with no mapped address, or cannot be sent.Behaviour to be aware of
FAILED(once all its check lists have ended) where it used to stay inRUNNING.USE-CANDIDATEon every check, and one of those checks failing is not a failure of the session.USE-CANDIDATEfor it is not treated as a failed nomination.Testing
NominationFailureTestcovers a timeout and an error response for the nominating check, the timeout of an ordinary check, a timeout after a pair was selected, and the controlled agent.