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

SendaoYan syan at openjdk.org
Thu Jan 15 02:42:44 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"

GHA report linux-x64 fastdebug build fails "No space left on device". This seems like environmental issue. It's unrelated to this PR.

Thanks for the reviews and verify @vy @dfuch.

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

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


More information about the net-dev mailing list