RFR: 8368546: java/net/httpclient/RedirectTimeoutTest.java fails intermittently for HTTP/3 in tier7

Daniel Fuchs dfuchs at openjdk.org
Wed Sep 24 14:29:56 UTC 2025


On Wed, 24 Sep 2025 14:20:47 GMT, SendaoYan <syan at openjdk.org> wrote:

>> The java/net/httpclient/RedirectTimeoutTest.java has been observed failing (once) for HTTP/3 on Windows in tier 7 (debug builds)
>> 
>> The log reveals that it's the HEAD request used for warmup that is failing in timeout. This was surprising as this HEAD request was not supposed to be configured with a timeout, and a reading of the test code revealed that a non-obvious call to HttpRequest.Builder::copy was missing in the test. I added that call, which should fix the issue.
>
> I run this test with this fix 120 times simultancely, and all the test passed. Before apply this fix the failure rate is 100/120 for the same test.

Thanks a lot @sendaoYan ! This is really helpful!

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

PR Comment: https://git.openjdk.org/jdk/pull/27471#issuecomment-3328820711


More information about the net-dev mailing list