Skip to content

Bug 1958329: UPSTREAM: 97428: add more context to log after a request times out#737

Merged
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
tkashem:pick-97428-4.8
Jun 3, 2021
Merged

Bug 1958329: UPSTREAM: 97428: add more context to log after a request times out#737
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
tkashem:pick-97428-4.8

Conversation

@tkashem
Copy link

@tkashem tkashem commented May 7, 2021

What type of PR is this?

/kind bug

What this PR does / why we need it:

when the timeout handler times out a request it writes 504 to the response and then spins up a go routine. The go routine waits for the inner handler to return the result.
This PR logs the result:

  • with request verb and path
  • with time elapsed since the timeout

log output:

E1221 13:28:44.939372   31341 timeout.go:130] a timeout response has already been sent - time elapsed since: 1.000324432s, GET "/version" result: net/http: abort Handler

Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

New metric apiserver_request_post_timeout_total that tracks the post-timeout activity of a request after it had been timed out by the apiserver

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label May 7, 2021
@openshift-ci-robot openshift-ci-robot added the backports/validated-commits Indicates that all commits come to merged upstream PRs. label May 7, 2021
@openshift-ci openshift-ci bot added the bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. label May 7, 2021
@openshift-ci
Copy link

openshift-ci bot commented May 7, 2021

@tkashem: This pull request references Bugzilla bug 1958329, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.8.0) matches configured target release for branch (4.8.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @wangke19

Details

In response to this:

Bug 1958329: UPSTREAM: 97428: add more context to log after a request times out

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/test-infra repository.

@openshift-ci openshift-ci bot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label May 7, 2021
@openshift-ci-robot
Copy link

@tkashem: the contents of this pull request could be automatically validated.

The following commits are valid:

@openshift-ci openshift-ci bot requested a review from wangke19 May 7, 2021 16:56
@openshift-ci openshift-ci bot added the vendor-update Touching vendor dir or related files label May 7, 2021
@openshift-ci openshift-ci bot requested review from marun and soltysh May 7, 2021 16:56
@openshift-ci-robot
Copy link

@tkashem: the contents of this pull request could be automatically validated.

The following commits are valid:

@tkashem
Copy link
Author

tkashem commented May 24, 2021

/retest

2 similar comments
@tkashem
Copy link
Author

tkashem commented Jun 1, 2021

/retest

@tkashem
Copy link
Author

tkashem commented Jun 2, 2021

/retest

@sttts
Copy link

sttts commented Jun 2, 2021

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 2, 2021
@openshift-ci
Copy link

openshift-ci bot commented Jun 2, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sttts, tkashem

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 2, 2021
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 27ac81c into openshift:master Jun 3, 2021
@openshift-ci
Copy link

openshift-ci bot commented Jun 3, 2021

@tkashem: All pull requests linked via external trackers have merged:

Bugzilla bug 1958329 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1958329: UPSTREAM: 97428: add more context to log after a request times out

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/test-infra repository.

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. backports/validated-commits Indicates that all commits come to merged upstream PRs. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. vendor-update Touching vendor dir or related files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants