Integrated: 8295991: java/net/httpclient/CancelRequestTest.java fails intermittently

Daniel Fuchs dfuchs at openjdk.org
Wed Nov 2 15:34:31 UTC 2022


On Tue, 1 Nov 2022 11:39:04 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> The CancelRequestTest test has been observed failing (once). It was recently updated to verify that subscribers would be correctly unregistered after the request was cancelled. However, the timeout used to wait for that to happen was optimistically too short: the test code that cancels the request is by design racy, so it's not guaranteed that the subscriber will be unregistered before the completable future is cancelled, it might get unregistered asynchronously shortly after.
> Increasing the timeout to wait for that to happen from 1ms to 100ms fixes the test issue.

This pull request has now been integrated.

Changeset: e15d2419
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e15d2419ab9c812a3dc18812406f7b59976d2143
Stats:     8 lines in 1 file changed: 5 ins; 0 del; 3 mod

8295991: java/net/httpclient/CancelRequestTest.java fails intermittently

Reviewed-by: jpai

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

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


More information about the net-dev mailing list