Integrated: 8374432: TimeoutResponseBodyTest.java#retriesEnabledForResponseFailure fails run with -Xcomp

SendaoYan syan at openjdk.org
Thu Jan 15 02:44:18 UTC 2026


On Wed, 31 Dec 2025 08:14:09 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> The test test/jdk/java/net/httpclient/TimeoutResponseBodyTest.java#retriesEnabledForResponseFailure  was observed timed out when run with jvm option -Xcomp. The failure details shows in [JDK-8374432](https://bugs.openjdk.org/browse/JDK-8374432). Maybe it need more time for C2 to compile the httpclient classes than the default mixed mode.
> 
> So this PR read the timeout factor from jtreg, and apply the timeout factor to `REQUEST_TIMEOUT` by multiply it. Change has been verified locally by run the related tests test/jdk/java/net/httpclient/TimeoutResponseHeaderTest.java and test/jdk/java/net/httpclient/TimeoutResponseBodyTest.java both with -Xmixed and -Xcomp. Test-fix only, no risk,

This pull request has now been integrated.

Changeset: d8f45faf
Author:    SendaoYan <syan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d8f45faf5849e66b8f0e35e1d18ed0331a0cb1c2
Stats:     5 lines in 1 file changed: 2 ins; 0 del; 3 mod

8374432: TimeoutResponseBodyTest.java#retriesEnabledForResponseFailure fails run with -Xcomp

Reviewed-by: vyazici, dfuchs

-------------

PR: https://git.openjdk.org/jdk/pull/29012


More information about the net-dev mailing list