Skip to content

Fix incorrect eager aborting of H2 channels during graceful shutdown - #15628

Closed
lorban wants to merge 5 commits into
jetty-12.1.xfrom
fix/12.1.x/15435-h2-graceful-shutdown
Closed

lorban wants to merge 5 commits into
jetty-12.1.xfrom
fix/12.1.x/15435-h2-graceful-shutdown

Conversation

@lorban

@lorban lorban commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Fix for #15368

Needs to be backported to 12.0.x.

 - make the lower-layer call HttpConnectionOverHTTP2.upwardClose() instead of close()
 - introduce a zero channel action that is executed when the last channel gets released/destroyed instead of when the lower layer notifies that it is done

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
lorban added 2 commits August 21, 2026 08:14
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
@janhoy

janhoy commented Sep 25, 2026

Copy link
Copy Markdown

Ping @sbordet @lorban How shall we interpret the radio silence here for one month. Is it going to slide to next release once more or are we close to a review and merge of this bugfix. Solr is approaching a new release and awaiting a fix.

@lorban

lorban commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

@janhoy sorry for the apparent lack of progress, but this issue is hairier than originally expected. While the attached PR does fix the issue (or a least, it did last time I checked) it's also a hack that needs to be cleaned up... which isn't as easy as it looks. I promise we're doing our best to get that issue fixed ASAP, but unfortunately we had other priorities recently.

On top of the above, we're drowning bit under work, like most popular Open Source projects.

- changed to upwardClose in HTTPSessionListenerPromise too
- improved HttpConnectionOverHTTP2.release() so it can only run zeroChannelAction() once
- modified tests to cover both HttpClientTransportOverHTTP2 and HttpClientTransportDynamic

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
@lorban

lorban commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

@sbordet I re-reviewed these changes and noticed HttpClientTransportDynamic was also impacted. I added a fix for it too and modified the tests to cover both transports.

Could you please give this PR a quick review as to get it merged before the next release? We would then keep the original issue open until we merge a cleanup of these changes.

@sbordet

sbordet commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Superseded by #15879.

@sbordet sbordet closed this Sep 29, 2026
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Jetty 12.1.14 FROZEN Sep 29, 2026
@sbordet
sbordet deleted the fix/12.1.x/15435-h2-graceful-shutdown branch September 29, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug For general bugs on Jetty side

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

HTTP/2 client aborts exchange and loses response completed during server graceful shutdown (regression in 12.1.10 / 12.0.36 from #15134 / #14692)

3 participants