Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate and honor http.ErrAbortHandler #82588

Merged
merged 1 commit into from Sep 12, 2019

Conversation

liggitt
Copy link
Member

@liggitt liggitt commented Sep 11, 2019

What type of PR is this?
/kind cleanup

What this PR does / why we need it:

Alternative to #82586
Fixes #82591

Prevents excessive log spam when proxied connections are closed by the backend.

The http stdlib uses a propagated panic as a sentinel value to indicate the panic is expected and no stack trace should be logged. This PR makes our panic-logging handlers honor that documented sentinel value.

Does this PR introduce a user-facing change?:

Fixes regression in logging spurious stack traces when proxied connections are closed by the backend

/sig api-machinery
/cc @deads2k @sttts

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Sep 11, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liggitt

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. area/apiserver labels Sep 11, 2019
@liggitt liggitt force-pushed the abort-handler-panic branch 2 times, most recently from f1bebcd to c0e66fc Compare September 11, 2019 15:23
@sttts
Copy link
Contributor

sttts commented Sep 11, 2019

Am fine with the direction.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 11, 2019
Copy link
Contributor

@jpbetz jpbetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor suggestion then lgtm.

staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 11, 2019
@liggitt
Copy link
Member Author

liggitt commented Sep 11, 2019

updated godocs, added tests

@liggitt
Copy link
Member Author

liggitt commented Sep 11, 2019

/priority critical-urgent
/milestone v1.16

@k8s-ci-robot k8s-ci-robot added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Sep 11, 2019
@k8s-ci-robot k8s-ci-robot added this to the v1.16 milestone Sep 11, 2019
@k8s-ci-robot k8s-ci-robot removed the needs-priority Indicates a PR lacks a `priority/foo` label and requires one. label Sep 11, 2019
@jpbetz
Copy link
Contributor

jpbetz commented Sep 11, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 11, 2019
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Sep 11, 2019
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 11, 2019
@liggitt
Copy link
Member Author

liggitt commented Sep 11, 2019

fixed spelling error (sentinel), retagging

@liggitt liggitt added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 11, 2019
@k8s-ci-robot k8s-ci-robot merged commit 17246b8 into kubernetes:master Sep 12, 2019
@k8s-ci-robot k8s-ci-robot modified the milestones: v1.16, v1.17 Sep 12, 2019
k8s-ci-robot added a commit that referenced this pull request Sep 12, 2019
…8-upstream-release-1.16

Automated cherry pick of #82588: Propagate and honor http.ErrAbortHandler
@liggitt liggitt deleted the abort-handler-panic branch September 13, 2019 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/apiserver cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. 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.

Cut off connections from kube-aggregator to aggregated apiserver lead to panic in the logs
4 participants