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 — Upgrade Netty 4.1.134 -> 4.1.135 by chrisvest · Pull Request #3502 · apple/servicetalk

Conversation

@chrisvest

@chrisvest chrisvest commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This is a security- and bug-fix release.
See the release notes:

  • 4.1.135: https://netty.io/news/2026/06/02/4-1-135-Final.html

Sorry, something went wrong.

Uh oh!

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

All reactions
@chrisvest
Upgrade Netty 4.1.134 -> 4.1.135
1ef2b11
This is a security- and bug-fix release.
See the release notes:

- 4.1.135: https://netty.io/news/2026/06/02/4-1-135-Final.html
@chrisvest
chrisvest requested a review from idelpivnitskiy June 2, 2026 22:40
@idelpivnitskiy

idelpivnitskiy commented Jun 3, 2026

Copy link
Copy Markdown
Member

@chrisvest this test failed couple times:

H2ConcurrencyControllerTest > noMaxActiveStreamsViolatedErrorAfterCancel() > repetition 10 of 16 FAILED
    java.lang.AssertionError: 
    Expected: is an empty collection
         but: <[io.servicetalk.http.netty.NettyHttp2ExceptionUtils$H2StreamRefusedException: RST_STREAM received for streamId=5 with error code: REFUSED_STREAM]>
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
        at io.servicetalk.http.netty.H2ConcurrencyControllerTest.noMaxActiveStreamsViolatedErrorAfterCancel(H2ConcurrencyControllerTest.java:211)
  1. https://github.com/apple/servicetalk/actions/runs/26852269691/job/79224883790?pr=3502
  2. https://github.com/apple/servicetalk/actions/runs/26852269691/job/79186947504?pr=3502

Previously it was not known to be flaky. Could it be related to netty/netty#16876?

All reactions

Sorry, something went wrong.

Uh oh!

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

@idelpivnitskiy
idelpivnitskiy requested a review from bryce-anderson June 3, 2026 15:41
@idelpivnitskiy

idelpivnitskiy commented Jun 3, 2026

Copy link
Copy Markdown
Member

We started seeing that in snapshot runs as well: https://github.com/apple/servicetalk/actions/runs/26898666742

All reactions

Sorry, something went wrong.

Uh oh!

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

chrisvest added 2 commits June 3, 2026 20:30
@chrisvest
Retry server-side refused H2 streams in addition to client-side refused
05a4613
@chrisvest
Fix checkstyle
3c97605
@chrisvest

chrisvest commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

I think this failure is an unrelated flaky test:

NettyHttpServerConnectionDrainTest > requestIsAutoDrainedWhenUserFailsToConsumeAndResponseBodyFails() FAILED
    org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
        at app//org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183)
        at app//io.servicetalk.http.netty.NettyHttpServerConnectionDrainTest.requestIsAutoDrainedWhenUserFailsToConsumeAndResponseBodyFails(NettyHttpServerConnectionDrainTest.java:104)
All reactions

Sorry, something went wrong.

Uh oh!

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

@chrisvest

chrisvest commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

I think this is also a flaky test failure:

PrematureClosureBeforeResponsePayloadBodyTest > notAllHeadersReceived() FAILED
    java.lang.AssertionError: expected io.netty.handler.codec.PrematureChannelClosureException optionally wrapped by io.servicetalk.transport.netty.internal.CloseHandler.CloseEventObservedException but got io.servicetalk.transport.netty.internal.CloseHandler.CloseEventObservedException caused by io.servicetalk.transport.netty.internal.StacklessClosedChannelException
        at io.servicetalk.concurrent.api.VerificationTestUtils.assertThrows(VerificationTestUtils.java:76)
        at io.servicetalk.http.netty.PrematureClosureBeforeResponsePayloadBodyTest.notAllHeadersReceived(PrematureClosureBeforeResponsePayloadBodyTest.java:138)

        Caused by:
        io.servicetalk.transport.netty.internal.CloseHandler$CloseEventObservedException: CHANNEL_CLOSED_INBOUND(The transport backing this connection has been shutdown (read)) [id: 0x60f8a6d2, L:/127.0.0.1:33136 ! R:127.0.0.1/127.0.0.1:40589]

            Caused by:
            io.servicetalk.transport.netty.internal.StacklessClosedChannelException
                at io.servicetalk.transport.netty.internal.NettyChannelPublisher.channelOnError(Unknown Source)

                Caused by:
                io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers
                    at app//io.servicetalk.http.netty.HttpObjectDecoder.decodeLast(HttpObjectDecoder.java:537)
                    at app//io.servicetalk.transport.netty.internal.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:305)
                    at app//io.servicetalk.transport.netty.internal.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:274)
                    at app//io.servicetalk.transport.netty.internal.ByteToMessageDecoder.userEventTriggered(ByteToMessageDecoder.java:266)
                    at app//io.servicetalk.http.netty.HttpObjectDecoder.userEventTriggered(HttpObjectDecoder.java:581)
                    at app//io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:398)
                    at app//io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:376)
                    at app//io.netty.channel.AbstractChannelHandlerContext.fireUserEventTriggered(AbstractChannelHandlerContext.java:368)
                    at app//io.servicetalk.transport.netty.internal.ServiceTalkWireLogger.userEventTriggered(ServiceTalkWireLogger.java:95)
                    at app//io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:398)
                    at app//io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:376)
                    at app//io.netty.channel.AbstractChannelHandlerContext.fireUserEventTriggered(AbstractChannelHandlerContext.java:368)
                    at app//io.netty.channel.DefaultChannelPipeline$HeadContext.userEventTriggered(DefaultChannelPipeline.java:1375)
                    at app//io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:396)
                    at app//io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:376)
                    at app//io.netty.channel.DefaultChannelPipeline.fireUserEventTriggered(DefaultChannelPipeline.java:862)
                    at app//io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.shutdownInput(AbstractEpollChannel.java:520)
                    at app//io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:828)
                    at app//io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe$1.run(AbstractEpollChannel.java:425)
                    at app//io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
                    at app//io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
                    at app//io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
                    at app//io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:405)
                    at app//io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998)
                    at app//io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
                    at app//io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
                    at [email protected]/java.lang.Thread.run(Thread.java:840)
All reactions

Sorry, something went wrong.

Uh oh!

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

@bryce-anderson

bryce-anderson commented Jun 4, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

I think this failure is an unrelated flaky test: requestIsAutoDrainedWhenUserFailsToConsumeAndResponseBodyFails

Indeed, known flaky: #3391

All reactions

Sorry, something went wrong.

Uh oh!

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

@bryce-anderson

bryce-anderson commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

I think this is also a flaky test failure: PrematureClosureBeforeResponsePayloadBodyTest > notAllHeadersReceived()

This had been flaky before but was allegedly fixed: #1224

All reactions

Sorry, something went wrong.

Uh oh!

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

@bryce-anderson bryce-anderson mentioned this pull request Jun 4, 2026
http-netty: Fix flaky noMaxActiveStreamsViolatedErrorAfterCancel() test #3506
Merged
idelpivnitskiy
idelpivnitskiy reviewed Jun 4, 2026
View reviewed changes
Comment thread ...p-netty/src/main/java/io/servicetalk/http/netty/ReservableRequestConcurrencyControllers.java Outdated
if (count <= 32 && t instanceof MaxConcurrentStreamsViolatedStacklessHttp2Exception) {
if (count <= 32 && (
t instanceof MaxConcurrentStreamsViolatedStacklessHttp2Exception ||
t instanceof NettyHttp2ExceptionUtils.H2StreamRefusedException)) {

@idelpivnitskiy idelpivnitskiy Jun 4, 2026

Copy link
Copy Markdown
Member

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.

Let's see if #3506 helps. This is a special retrying path for MaxConcurrentStreamsViolatedStacklessHttp2Exception only because of expected race b/w offloaded thread pool and event loop. For regular users, H2StreamRefusedException will be retries by standard retrying filter because it's marked as RetryableException - bcz it comes from remote, it's enough to rely on standard retries without the need for special InternalRetryingHttpClientFilter

Sorry, something went wrong.

Uh oh!

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

All reactions
@bryce-anderson

bryce-anderson commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

#3506 is merged. @chrisvest, can you rebase/merge, and see if this is now green without the change in ReservableRequestConcurrencyControllers? I think it should be since the repro branch is now passing (here).

All reactions

Sorry, something went wrong.

Uh oh!

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

chrisvest added 3 commits June 4, 2026 12:15
@chrisvest
Merge branch 'main' into netty-4.1.135
b0435f7
@chrisvest
Revert "Retry server-side refused H2 streams in addition to client-si…
34f0dca
…de refused"

This reverts commit 05a4613
@chrisvest
Fix checkstyle
140deff
@bryce-anderson

bryce-anderson commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

The diagnostic PR (#3505) looks like it's stable: passed two rounds of CI without issue.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bryce-anderson bryce-anderson mentioned this pull request Jun 4, 2026
TESTING: do not merge 2 #3505
Closed
bryce-anderson
bryce-anderson approved these changes Jun 4, 2026
View reviewed changes
idelpivnitskiy
idelpivnitskiy approved these changes Jun 4, 2026
View reviewed changes

@idelpivnitskiy idelpivnitskiy left a comment

Copy link
Copy Markdown
Member

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.

I rerun it one more time, just in case. We can merge after that. Thanks @chrisvest and @bryce-anderson!

Sorry, something went wrong.

Uh oh!

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

chrisvest reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@idelpivnitskiy
idelpivnitskiy merged commit 32c4574 into main Jun 4, 2026
23 checks passed

Uh oh!

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

@idelpivnitskiy
idelpivnitskiy deleted the netty-4.1.135 branch June 4, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bryce-anderson bryce-anderson bryce-anderson approved these changes
@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

@chrisvest @idelpivnitskiy @bryce-anderson
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.