GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http-netty: Fix flaky noMaxActiveStreamsViolatedErrorAfterCancel() test by bryce-anderson · Pull Request #3506 · apple/servicetalk

Conversation

@bryce-anderson

@bryce-anderson bryce-anderson commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Motivation

The H2ConcurrencyControllerTest.noMaxActiveStreamsViolatedErrorAfterCancel() test is flaky because under certain conditions, it can open a second connection and it doesn't wait for the settings to sync for that connection, thus it tries to send multiple requests and one ultimately gets rejected.

Modifications

Ensure that only a single connection is used. This is done via constricting the connections to exactly one and retrying the connection creation exceptions.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bryce-anderson
http-netty: Fix flaky noMaxActiveStreamsViolatedErrorAfterCancel() test
82b89e9
 #### Motivation

The H2ConcurrencyControllerTest.noMaxActiveStreamsViolatedErrorAfterCancel() test
is flaky because under certain conditions, it can open a second connection
and it doesn't wait for the settings to sync for that connection, thus it tries
to send multiple requests and one ultimately gets rejected.

 #### Modifications

Ensure that only a single connection is used. This is done via constricting the
connections to exactly one and retrying the connection creation exceptions.
@bryce-anderson
bryce-anderson requested review from chrisvest and idelpivnitskiy June 4, 2026 18:10
chrisvest
chrisvest reviewed Jun 4, 2026
View reviewed changes

@chrisvest chrisvest left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks fine to me, but I don't have enough confidence in my understanding of this code to approve.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bryce-anderson reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@bryce-anderson

bryce-anderson commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Note that this is intended to fix the test that has been flaking as part of the netty upgrade: #3502

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

idelpivnitskiy
idelpivnitskiy approved these changes Jun 4, 2026
View reviewed changes
@idelpivnitskiy idelpivnitskiy mentioned this pull request Jun 4, 2026
Upgrade Netty 4.1.134 -> 4.1.135 #3502
Merged
@bryce-anderson
bryce-anderson merged commit 572a194 into apple:main Jun 4, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bryce-anderson
bryce-anderson deleted the bl_anderson/flaky-H2ConcurrencyControllerTest branch June 4, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chrisvest chrisvest chrisvest left review comments
@idelpivnitskiy idelpivnitskiy idelpivnitskiy approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@bryce-anderson @chrisvest @idelpivnitskiy
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.