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

grid: cleaning up potential zombie streams #31346

Merged
merged 7 commits into from
Jan 3, 2024

Conversation

alyssawilk
Copy link
Contributor

@alyssawilk alyssawilk commented Dec 13, 2023

Fixing an issue where "prefetched" H3 streams were not cleaned up promptly.

Risk Level: low
Testing: new e2e tests
Docs Changes: n/a
Release Notes: inline
[Optional Runtime guard:] yes

Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #31346 was opened by alyssawilk.

see: more, trace.

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Copy link

CC @envoyproxy/runtime-guard-changes: FYI only for changes made to (source/common/runtime/runtime_features.cc).

🐱

Caused by: #31346 was synchronize by alyssawilk.

see: more, trace.

@alyssawilk alyssawilk marked this pull request as ready for review December 14, 2023 13:50
@alyssawilk alyssawilk changed the title grid: adding a slow H3 test grid: cleaning up potential zombie streams Dec 14, 2023
@alyssawilk
Copy link
Contributor Author

this may still have a gcc test flake but I think it's ready for a review pass

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Copy link
Contributor

@RyanTheOptimist RyanTheOptimist left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for doing this. A few small comments.

@@ -67,6 +67,18 @@ name: alternate_protocols_cache
HttpProtocolIntegrationTest::initialize();
}

void writeFile(uint32_t index) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: As long as you're here, would you mind renaming this method to something a bit more descriptive? maybe something like "writeAltSvcToFile()" or some such?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -105,6 +120,7 @@ name: alternate_protocols_cache
}
throw EnvoyException("Failed to find a port after 10 tries");
}
bool fill_cache_ = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: brief comment on the meaning of this. (Maybe name this something parallel with the new name of the writeFile() method).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

const std::chrono::milliseconds timeout = TestUtility::DefaultTimeout;

initialize();
codec_client_ = makeHttpConnection(makeClientConnection((lookupPort("http"))));
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: is there an extra set of ()s around lookupPort? Here and elsewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep!

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk
Copy link
Contributor Author

/wait on CI

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk alyssawilk enabled auto-merge (squash) January 3, 2024 13:44
@alyssawilk alyssawilk merged commit bea9651 into envoyproxy:main Jan 3, 2024
53 checks passed
@alyssawilk alyssawilk deleted the alt_prot_test branch May 23, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants