RFR: JDK-8311792: java/net/httpclient/ResponsePublisher.java fails intermittently with AssertionError: Found some outstanding operations

Darragh Clarke dclarke at openjdk.org
Wed Aug 16 12:29:29 UTC 2023


Currently `ResponsePublisher` occasionally fails due to unreleased resources.
Updated test based on [AbstractThrowingPushPromises](https://github.com/openjdk/jdk/blob/b80001de0c0aeedeb412430660a4727fc26be98b/test/jdk/java/net/httpclient/AbstractThrowingPushPromises.java#L343) to ensure that non-shared clients get closed before further iterations run, this should limit the max number of clients that remain alive during the test.

I ran tiers 1-3 and everything is passing

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

Commit messages:
 - ensure clients close to avoid intermittent failure from outstanding operations

Changes: https://git.openjdk.org/jdk/pull/15307/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15307&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8311792
  Stats: 58 lines in 1 file changed: 58 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/15307.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15307/head:pull/15307

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


More information about the net-dev mailing list