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

OCPBUGS-32044: Introduce 'idle-close-on-response' option for frontends #573

Merged

Conversation

alebedev87
Copy link
Contributor

@alebedev87 alebedev87 commented Apr 15, 2024

This PR addresses a known issue (OCPBUGS-32044) encountered with certain HTTP clients, notably the Apache HTTP client (prior to version 5), where closed idle connections are erroneously reused. To mitigate this, we introduce the idle-close-on-response option, which is now applied to all frontends operating in HTTP mode. Note that the public_ssl frontend remains in TCP mode and is unaffected by this change.

Spin off of #572.

@openshift-ci-robot openshift-ci-robot added jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 15, 2024
@openshift-ci-robot
Copy link
Contributor

@alebedev87: This pull request references Jira Issue OCPBUGS-32044, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Spin off of #572. Checking whether the change passes the CI while trying to get rid of the warning message.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 15, 2024
@openshift-ci openshift-ci bot requested review from gcs278 and knobunc April 15, 2024 10:29
@alebedev87
Copy link
Contributor Author

/payload-job periodic-ci-openshift-release-master-nightly-4.16-e2e-aws-serial

Copy link
Contributor

openshift-ci bot commented Apr 15, 2024

@alebedev87: trigger 0 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

@alebedev87
Copy link
Contributor Author

/payload-job periodic-ci-openshift-release-master-nightly-4.16-e2e-aws-ovn-serial

Copy link
Contributor

openshift-ci bot commented Apr 15, 2024

@alebedev87: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-master-nightly-4.16-e2e-aws-ovn-serial

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/ec907a70-fb24-11ee-9600-fee9bca1e7a1-0

Comment on lines 217 to 221
# https://issues.redhat.com/browse/OCPBUGS-32044
option idle-close-on-response
Copy link
Contributor

@Miciah Miciah Apr 15, 2024

Choose a reason for hiding this comment

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

If you provide a bare URL or bug number with no further information, then the reader has to look up the bug report. If the reader has to do a lookup, then the reader could just as easily use git-blame to look up the commit message, which should explain the change and have a reference to the bug report. Could you add more details to the comment, or just remove the comment entirely and rely on the commit message to explain the change?

Suggested change
# https://issues.redhat.com/browse/OCPBUGS-32044
option idle-close-on-response
# Work around an issue with Apache HttpClient 4.5's connection pooling manager,
# which may attempt to re-use closed idle connections if this option is not enabled.
option idle-close-on-response

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't give this diff enough of care yet. I just dropped the option to be able to test it. If this change will be the way to go I think I'll add some text as you proposed.

Btw the issue is not only with the Apache HTTP Client, initially the option was implemented for AWS because the ALBs kept sending requests to the closed (idle before) connections (haproxy/haproxy#1506).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The comments and the commit message are updated. PTAL.

@alebedev87 alebedev87 changed the title [WIP] OCPBUGS-32044: add option idle-close-on-response to frontends OCPBUGS-32044: Introduce 'idle-close-on-response' option for frontends Apr 18, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 18, 2024
@alebedev87
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 18, 2024
@openshift-ci-robot
Copy link
Contributor

@alebedev87: This pull request references Jira Issue OCPBUGS-32044, which is valid. The bug has been moved to the POST state.

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

Requesting review from QA contact:
/cc @lihongan

In response to this:

/jira refresh

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested a review from lihongan April 18, 2024 11:30
@alebedev87
Copy link
Contributor Author

/assign @frobware
/assign @Miciah

@frobware
Copy link
Contributor

Not sure the verbiage associated with the option needs repeating 3 times.

/lgtm

This committ addresses a known issue (OCPBUGS-32044) encountered with certain HTTP clients,
notably the Apache HTTP client (prior to version 5), where closed idle connections are erroneously reused.
To mitigate this, we introduce the 'idle-close-on-response' option, which is now applied to all frontends operating in HTTP mode.
Note that the 'public_ssl' frontend remains in TCP mode and is unaffected by this change.
@alebedev87
Copy link
Contributor Author

Redundant comments about the option are removed.

@frobware
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 18, 2024
@Miciah
Copy link
Contributor

Miciah commented Apr 18, 2024

Thanks!
/approve
/lgtm

Copy link
Contributor

openshift-ci bot commented Apr 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Miciah

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 18, 2024
Copy link
Contributor

openshift-ci bot commented Apr 18, 2024

@alebedev87: all tests passed!

Full PR test history. Your PR dashboard.

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.

@openshift-merge-bot openshift-merge-bot bot merged commit a14aea7 into openshift:master Apr 18, 2024
8 checks passed
@openshift-ci-robot
Copy link
Contributor

@alebedev87: Jira Issue OCPBUGS-32044: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-32044 has been moved to the MODIFIED state.

In response to this:

This PR addresses a known issue (OCPBUGS-32044) encountered with certain HTTP clients, notably the Apache HTTP client (prior to version 5), where closed idle connections are erroneously reused. To mitigate this, we introduce the idle-close-on-response option, which is now applied to all frontends operating in HTTP mode. Note that the public_ssl frontend remains in TCP mode and is unaffected by this change.

Spin off of #572.

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 openshift-eng/jira-lifecycle-plugin repository.

@alebedev87
Copy link
Contributor Author

/cherry-pick release-4.15

@openshift-cherrypick-robot

@alebedev87: new pull request created: #579

In response to this:

/cherry-pick release-4.15

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.

@alebedev87
Copy link
Contributor Author

/cherry-pick release-4.14

@openshift-cherrypick-robot

@alebedev87: new pull request created: #580

In response to this:

/cherry-pick release-4.14

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-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-haproxy-router-base-container-v4.16.0-202404181812.p0.ga14aea7.assembly.stream.el9 for distgit ose-haproxy-router-base.
All builds following this will include this PR.

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. jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants