RFR: 8376308: java/net/httpclient/CancelRequestTest.java fails intermittently with "Expected CancellationException not received" [v2]
Daniel Fuchs
dfuchs at openjdk.org
Fri Jan 30 14:25:07 UTC 2026
On Fri, 30 Jan 2026 12:45:54 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
>> Daniel Fuchs has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Review feedback
>
> Marked as reviewed by djelinski (Reviewer).
@djelinski I fixed the issue with stack traces being printed for expected exceptions. If you could have a look again?
Those exceptions stacks were in fact printed twice: once in the handler and once in the HttpServerAdapters infrastructure. Fortunately the latter can be switched off by adding an "X-expect-exception:" header, and the former have now been supressed.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29415#issuecomment-3824026244
More information about the net-dev
mailing list