Repository navigation
Add WithSingleAttemptDial so timed-out requests stop redialing - #3451
sarmientoF wants to merge 1 commit into
Conversation
|
Welcome @sarmientoF! It looks like this is your first PR to knative/pkg 🎉 |
|
Hi @sarmientoF. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sarmientoF The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
net/http detaches dials from request cancellation, so after a request times out dialBackOffHelper keeps retrying. A request marked with WithSingleAttemptDial dials once and stops at its deadline. Fixes knative#3449 Signed-off-by: Sarmiento Fernando <fsarmientod@uni.pe>
3eec04b to
fb2a00a
Compare
A timed-out probe no longer leaves dialBackOffHelper redialing. Requires knative/pkg#3451. Signed-off-by: Sarmiento Fernando <fsarmientod@uni.pe>
Fixes #3449
Changes
network.WithSingleAttemptDial(ctx): a request carrying it dials once and stops atctx's deadline.net/httpdetaches the dial from request cancellation, so after a request times outdialBackOffHelperkeeps retrying (up to 15 steps, ~27 s). The Activator probes unready pods every 200 ms with a 300 ms timeout, so each failed probe leaves a retry loop. When a node dies, these loops fill conntrack on the Activator nodes and take more nodes NotReady.TestSingleAttemptDialStopsAtDeadlinefails on main with 5 dial attempts, want 1.TestSingleAttemptDialSparesConcurrentRequestcovers a concurrent request on the shared transport over HTTP/1.1 and h2./kind bug
Release Note