-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(activator): Don't cancel all probes on one probe failure (#14303)
* fix(activator): Don't cancel all probes on one probe failure By using errgroup.WithContext, all probes are cancelled on the first error returned. This changes to use an errgroup without a context/cancellation. So all probes are allowed to run to completion and one failed probe does not cause all probes to exit. Ref #14200 * fix(activator): Update tests to include pod IP probe tests - Add pod IP probe tests to directly test the pod IP probing behavior - Add test for no-probe optimization when all healthy - Add test for a pod returning an error to verify it does not block / cancel other probes (confirmed test with prior code which fails) - Update the fake roundtripper to support the new pod IP probe tests by introducing the Delay field to be used to delay the response. Default handling skips the delay if not set. - Add comment to errgroup change since this had been correct before and was incorrectly changed. (Additionally change to use original form.) * refactor(activator): Refactor roundtripper for test Update to use a function for the delay to reduce duplicate code.
- Loading branch information
Showing
3 changed files
with
104 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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