Skip to content

Port: HTTP/2: Fix stream stall when toggling auto-read on a child channel (#17617) - #17650

Merged
normanmaurer merged 2 commits into
5.0from
h2_stream5
Sep 28, 2026
Merged

normanmaurer merged 2 commits into
5.0from
h2_stream5

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

Motivation:

When setAutoRead() is called on an Http2StreamChannel from a
different EventLoop than the one the channel is registered to (e.g., a
proxy mirroring writability state between streams on different
connections) we can end up not flushing the window update frame.

Modification:

  • Ensure the window update frame is always flushed
  • Add unit tests

Result:

Fixes #17600.


Co-authored-by: Norman Maurer [email protected]

…nnel (#17617)

Motivation:

When `setAutoRead()` is called on an `Http2StreamChannel` from a
different EventLoop than the one the channel is registered to (e.g., a
proxy mirroring writability state between streams on different
connections) we can end up not flushing the window update frame.

Modification:

- Ensure the window update frame is always flushed
- Add unit tests

Result:

Fixes #17600.

---------

Co-authored-by: Norman Maurer <[email protected]>
@testlens-app

testlens-app Bot commented Sep 28, 2026 •

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 / linux-x86_64-java25-unsafe-buffer build > Netty/Common

Test Runs Flakiness
SingleThreadEventExecutorTest > testSuspendDoesNotRaceWithCancelledScheduledTask() ❌ 5% 🟠

🏷️ Commit: 775df9c
▶️ Tests: 172522 executed
⚪️ Checks: 12/12 completed

Test Failures

SingleThreadEventExecutorTest > testSuspendDoesNotRaceWithCancelledScheduledTask() (Netty/Common in Build PR / linux-x86_64-java25-unsafe-buffer build)
org.opentest4j.AssertionFailedError: worker thread did not terminate at iteration 604 ==> expected: <false> but was: <true>
	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.AssertFalse.failNotFalse(AssertFalse.java:63)
	at org.junit.jupiter.api.AssertFalse.assertFalse(AssertFalse.java:36)
	at org.junit.jupiter.api.Assertions.assertFalse(Assertions.java:239)
	at io.netty.util.concurrent.SingleThreadEventExecutorTest.testSuspendDoesNotRaceWithCancelledScheduledTask(SingleThreadEventExecutorTest.java:243)
	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
false true

Rerun Controls

Select tests to mute in this pull request:

  • SingleThreadEventExecutorTest > testSuspendDoesNotRaceWithCancelledScheduledTask()

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.

@normanmaurer
normanmaurer merged commit 9af412f into 5.0 Sep 28, 2026
12 of 13 checks passed
@normanmaurer
normanmaurer deleted the h2_stream5 branch September 28, 2026 18:06
@normanmaurer normanmaurer added this to the 5.0.0.Final milestone Sep 28, 2026
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