RFR: 8373362: Http3TestServer should not log an exception stack trace when it is stopping normally
Jaikiran Pai
jpai at openjdk.org
Wed Dec 10 12:41:24 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.
Looks good and trivial to me.
-------------
Marked as reviewed by jpai (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/28743#pullrequestreview-3562355039
More information about the net-dev
mailing list