Skip to content

Limit internal retries to 1 with Java 26+ - #1946

Merged
kwin merged 1 commit into
masterfrom
bugfix/fix-jdktransportit-on-java26
Jul 2, 2026
Merged

Limit internal retries to 1 with Java 26+#1946
kwin merged 1 commit into
masterfrom
bugfix/fix-jdktransportit-on-java26

Conversation

@kwin

@kwin kwin commented Jul 2, 2026

Copy link
Copy Markdown
Member

This only affects IT and Java26+. The internal retry handling changed with Java 26 (openjdk/jdk@e8db14f#diff-41e3c3f66a6d78612e230f2546ac15e3f82619efe333a731b64f59a9e4991816). Previously for connection closed exceptions there were always 2 attempts while with Java 26 this defaults to system property "jdk.httpclient.redirects.retrylimit" now.

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Your pull request should address just one issue, without pulling in other changes.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.
    Note that commits might be squashed by a maintainer on merge.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
    This may not always be possible but is a best-practice.
  • Run mvn verify to make sure basic checks pass.
    A more thorough check will be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its verify).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

This only affects IT and Java26+. The internal retry handling changed
with Java 26
(openjdk/jdk@e8db14f#diff-41e3c3f66a6d78612e230f2546ac15e3f82619efe333a731b64f59a9e4991816).
Previously for connection closed exceptions there were always 2 attempts
while with Java 26 this defaults to system property
"jdk.httpclient.redirects.retrylimit" now.
@kwin
kwin force-pushed the bugfix/fix-jdktransportit-on-java26 branch from 16590d4 to 9e07a13 Compare July 2, 2026 13:48
@kwin
kwin requested a review from cstamas July 2, 2026 13:48
@kwin
kwin merged commit f9d2c83 into master Jul 2, 2026
17 checks passed
@kwin
kwin deleted the bugfix/fix-jdktransportit-on-java26 branch July 2, 2026 14:23
@github-actions github-actions Bot added this to the 2.0.21 milestone Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

@kwin Please assign appropriate label to PR according to the type of change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants