RFR: 8374432: TimeoutResponseBodyTest.java#retriesEnabledForResponseFailure fails run with -Xcomp [v2]

David Holmes dholmes at openjdk.org
Sun Jan 4 21:05:50 UTC 2026


On Sat, 3 Jan 2026 02:08:21 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,
>
> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   use "jdk.test.lib.Utils.adjustTimeout"

I've updated the JBS report as we have seen further timeouts in related tests with no use of -Xcomp.

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

PR Comment: https://git.openjdk.org/jdk/pull/29012#issuecomment-3708422500


More information about the net-dev mailing list