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 — Auto-port 5.0: Http2ConnectionRoundtripTest: Reduce timing sensitivity to fix CI flakiness by netty-project-bot · Pull Request #17551 · netty/netty

Conversation

@netty-project-bot

@netty-project-bot netty-project-bot commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Auto-port of #17540 to 5.0
Cherry-picked commit: dd1e53e


Motivation:

We saw sporadic CI failures in Http2ConnectionRoundtripTest where a
CountDownLatch.await(...) timed out even though the connection was
behaving correctly. Each test method spins up two
MultiThreadIoEventLoopGroups with the default thread count
(2 * available processors), even though the test only exercises
LocalChannel and never needs more than one thread per group. Combined
with this module running JUnit5 tests concurrently, this can create
significant thread oversubscription and starve the event loop long
enough to blow the 15 second timeout under load. This was reproduced
locally by running many instances of the test concurrently while the
machine was under heavy CPU load, which reliably reproduced the same
kind of timeout failure seen on CI.

Modifications:

  • Pin the client and server MultiThreadIoEventLoopGroups in
    bootstrapEnv(...) to a single thread each instead of the default,
    since LocalChannel does not benefit from extra threads.
  • Increase DEFAULT_AWAIT_TIMEOUT_SECONDS from 15 to 30 seconds to give
    more headroom under CI load.

Result:

Less flaky Http2ConnectionRoundtripTest.

Sorry, something went wrong.

Uh oh!

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

All reactions
@normanmaurer @netty-project-bot
Http2ConnectionRoundtripTest: Reduce timing sensitivity to fix CI fla…
cabbf4b
…kiness (#17540)

Motivation:

We saw sporadic CI failures in Http2ConnectionRoundtripTest where a
CountDownLatch.await(...) timed out even though the connection was
behaving correctly. Each test method spins up two
MultiThreadIoEventLoopGroups with the default thread count
(2 * available processors), even though the test only exercises
LocalChannel and never needs more than one thread per group. Combined
with this module running JUnit5 tests concurrently, this can create
significant thread oversubscription and starve the event loop long
enough to blow the 15 second timeout under load. This was reproduced
locally by running many instances of the test concurrently while the
machine was under heavy CPU load, which reliably reproduced the same
kind of timeout failure seen on CI.

Modifications:

- Pin the client and server MultiThreadIoEventLoopGroups in
  bootstrapEnv(...) to a single thread each instead of the default,
  since LocalChannel does not benefit from extra threads.
- Increase DEFAULT_AWAIT_TIMEOUT_SECONDS from 15 to 30 seconds to give
  more headroom under CI load.

Result:

Less flaky Http2ConnectionRoundtripTest.

(cherry picked from commit dd1e53e)
@netty-project-bot netty-project-bot mentioned this pull request Sep 20, 2026
Http2ConnectionRoundtripTest: Reduce timing sensitivity to fix CI flakiness #17540
Merged
@testlens-app

testlens-app Bot commented Sep 20, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

🚨 TestLens detected 1 failed test 🚨

Here is what you can do:

  1. Inspect the test failures carefully.
  2. If you are convinced that some of the tests are flaky, you can mute them below.
  3. Finally, trigger a rerun by checking the rerun checkbox.

Test Summary

Build PR / windows-x86_64-java25-boringssl > Netty/Transport

Test Runs Flakiness
NioEventLoopTest > testTaskRemovalOnShutdownThrowsNoUnsupportedOperationExcepti… ❌ 0% 🟢

🏷️ Commit: cabbf4b
▶️ Tests: 205514 executed
⚪️ Checks: 12/12 completed

Test Failures

NioEventLoopTest > testTaskRemovalOnShutdownThrowsNoUnsupportedOperationException() (Netty/Transport in Build PR / windows-x86_64-java25-boringssl)
org.opentest4j.AssertionFailedError: Unexpected type, expected: <java.util.concurrent.RejectedExecutionException> but was: <java.lang.OutOfMemoryError>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertInstanceOf.assertInstanceOf(AssertInstanceOf.java:49)
	at org.junit.jupiter.api.AssertInstanceOf.assertInstanceOf(AssertInstanceOf.java:31)
	at org.junit.jupiter.api.Assertions.assertInstanceOf(Assertions.java:3614)
	at io.netty.channel.nio.NioEventLoopTest.testTaskRemovalOnShutdownThrowsNoUnsupportedOperationException(NioEventLoopTest.java:178)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
expected actual
class java.util.concurrent.RejectedExecutionException class java.lang.OutOfMemoryError

Rerun Controls

Select tests to mute in this pull request:

  • NioEventLoopTest > testTaskRemovalOnShutdownThrowsNoUnsupportedOperationException()

Reuse successful test results:

  • ♻️ Only rerun the tests that failed or were muted before

Click the checkbox to trigger a rerun:

  • Rerun jobs

Learn more about TestLens at testlens.app/docs.

All reactions

Sorry, something went wrong.

Uh oh!

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

@normanmaurer normanmaurer added this to the 5.0.0.Final milestone Sep 20, 2026
@normanmaurer
normanmaurer merged commit 1d3f68e into 5.0 Sep 20, 2026
12 of 13 checks passed

Uh oh!

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

@normanmaurer
normanmaurer deleted the auto-port-pr-17540-to-5.0 branch September 20, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

5.0.0.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

2 participants

@netty-project-bot @normanmaurer
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.