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

adds a unit test for checking if graceful shutdown of HTTP2 server works #483

Merged

Conversation

p0lyn0mial
Copy link

@p0lyn0mial p0lyn0mial commented Dec 11, 2020

TestGracefulShutdownForActiveHTTP2Streams checks if graceful shut down of HTTP2 server works.
It expects that all active connections will be finished (without any errors) before the server exits.

The test sends 25 requests to the target server in parallel. Each request is held by the target server for 60s.
As soon as the target server receives the last request the test calls backendServer.Config.Shutdown which gracefully shuts down the server without interrupting any active connections.

Note this test will fail on upstream golang 1.15
OpenShift carries a patch that makes it to work.

See more at: golang/go#39776

Note:
Tested successfully on registry.svc.ci.openshift.org/openshift/release:rhel-8-release-golang-1.15-openshift-4.7

@p0lyn0mial
Copy link
Author

/assign @sttts @tkashem

@p0lyn0mial
Copy link
Author

/test unit

@p0lyn0mial p0lyn0mial changed the title adds a unit test for checking if graceful shut down of HTTP2 server works adds a unit test for checking if graceful shutdown of HTTP2 server works Dec 11, 2020
@p0lyn0mial
Copy link
Author

/retest

@sttts
Copy link

sttts commented Jan 13, 2021

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 13, 2021
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 13, 2021
@p0lyn0mial
Copy link
Author

/retest

@openshift-bot
Copy link

/retest

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

4 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-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 7616fab into openshift:master Jan 14, 2021
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. 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