Integrated: 8373362: Http3TestServer should not log an exception stack trace when it is stopping normally

Daniel Fuchs dfuchs at openjdk.org
Wed Dec 10 15:17:41 UTC 2025


On Wed, 10 Dec 2025 12:19:54 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> This a test fix only. The Http3TestServer has an additional level of logging that will print a full stack trace if an exception is thrown by the exchange handler. Printing the full stack trace is not helpful when the underlying server is stopping due to no error (typically when stop() is being called), and can clutter the log, making them more difficult to analyze.
> 
> This change turns off calling Throwable.printStackTrace() in such a case.

This pull request has now been integrated.

Changeset: 54430a87
Author:    Daniel Fuchs <dfuchs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/54430a87226096725b13f05326d08629420657ca
Stats:     23 lines in 2 files changed: 22 ins; 0 del; 1 mod

8373362: Http3TestServer should not log an exception stack trace when it is stopping normally

Reviewed-by: jpai, djelinski

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

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


More information about the net-dev mailing list