Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@saschagrunert
Copy link
Member

What type of PR is this?

/kind bug

What this PR does / why we need it:

We cannot throw an additional HTTP error if the response write fails,
because it already sets the http error code internally. This resulted in
an "http: superfluous response.WriteHeader call" error. To mitigate the
issue, we now only log the error.

Which issue(s) this PR fixes:

Refers to https://bugzilla.redhat.com/show_bug.cgi?id=2006654

Special notes for your reviewer:

None

Does this PR introduce a user-facing change?

Fixed superfluous response.WriteHeader error in HTTP endpoint 

We cannot throw an additional HTTP error if the response write fails,
because it already sets the http error code internally. This resulted in
an "http: superfluous response.WriteHeader call" error. To mitigate the
issue, we now only log the error.

Signed-off-by: Sascha Grunert <[email protected]>
@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Oct 14, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 14, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert

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 requested review from nalind and sboeuf October 14, 2021 11:02
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 14, 2021
@saschagrunert
Copy link
Member Author

@cri-o/cri-o-maintainers PTAL

@codecov
Copy link

codecov bot commented Oct 14, 2021

Codecov Report

Merging #5405 (b6b3f4c) into main (1c628f7) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #5405   +/-   ##
=======================================
  Coverage   43.72%   43.73%           
=======================================
  Files         118      118           
  Lines       11752    11751    -1     
=======================================
  Hits         5139     5139           
+ Misses       6125     6124    -1     
  Partials      488      488           

@saschagrunert
Copy link
Member Author

/test integration_crun

@haircommander
Copy link
Member

LGTM
@cri-o/cri-o-maintainers PTAL

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 14, 2021

@saschagrunert: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/openshift-jenkins/integration_crun_cgroupv2 b6b3f4c link false /test integration_cgroupv2
ci/openshift-jenkins/e2e_crun_cgroupv2 b6b3f4c link false /test e2e_cgroupv2

Full PR test history. Your PR dashboard.

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/test-infra repository. I understand the commands that are listed here.

@QiWang19
Copy link
Member

/lgtm

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

/retest-required

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

2 similar comments
@openshift-bot
Copy link

/retest-required

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

@openshift-bot
Copy link

/retest-required

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

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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants