Registry Mirror
Skip to content

Conversation

@sarmientoF

@sarmientoF sarmientoF commented Dec 1, 2026 •

Copy link
Copy Markdown

Fixes #3449

Changes

  • 🐛 Add network.WithSingleAttemptDial(ctx): a request carrying it dials once and stops at ctx's deadline.
  • Bug: net/http detaches the dial from request cancellation, so after a request times out dialBackOffHelper keeps 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.
  • Why here: the retries live in the dialer. Opt-in, because proxied requests rely on them during cold start and only the caller knows a request is a probe. Dial Activator readiness probes once within the probe timeout serving#16876 marks Activator probes.
  • TestSingleAttemptDialStopsAtDeadline fails on main with 5 dial attempts, want 1. TestSingleAttemptDialSparesConcurrentRequest covers a concurrent request on the shared transport over HTTP/1.1 and h2.

/kind bug

Release Note

NONE

@knative-prow knative-prow Bot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 1, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@knative-prow knative-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 1, 2026
@knative-prow

knative-prow Bot commented Dec 1, 2026

Copy link
Copy Markdown

Welcome @sarmientoF! It looks like this is your first PR to knative/pkg 🎉

@knative-prow knative-prow Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Dec 1, 2026
@knative-prow

knative-prow Bot commented Dec 1, 2026

Copy link
Copy Markdown

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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.

@knative-prow
knative-prow Bot requested review from Leo6Leo and skonto December 1, 2026 02:55
@knative-prow

knative-prow Bot commented Dec 1, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sarmientoF
Once this PR has been reviewed and has the lgtm label, please assign gauron99 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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>
@sarmientoF
sarmientoF force-pushed the fix/single-attempt-probe-dial branch from 3eec04b to fb2a00a Compare December 1, 2026 04:58
sarmientoF added a commit to sarmientoF/serving that referenced this pull request Dec 1, 2026
A timed-out probe no longer leaves dialBackOffHelper redialing.
Requires knative/pkg#3451.

Signed-off-by: Sarmiento Fernando <fsarmientod@uni.pe>
@sarmientoF sarmientoF changed the title Bound single-attempt dials to the original request context Add WithSingleAttemptDial so timed-out requests stop redialing Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Activator readiness-probe dials continue after the probe context expires

1 participant