jsancio commented on a change in pull request #11457: URL: https://github.com/apache/kafka/pull/11457#discussion_r754759742
########## File path: core/src/test/scala/integration/kafka/server/QuorumTestHarness.scala ########## @@ -163,6 +163,26 @@ abstract class QuorumTestHarness extends Logging { // That way you control the initialization order. @BeforeEach def setUp(testInfo: TestInfo): Unit = { + Exit.setExitProcedure((code, message) => { + try { + throw new RuntimeException(s"exit(${code}, ${message}) called!") + } catch { + case e: Throwable => error("test error", e) + throw e Review comment: It is close enough. Java constructs the stacktrace when the exception is constructed. Line 168 in this case. I am okay either way. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org