cmccabe commented on a change in pull request #11457: URL: https://github.com/apache/kafka/pull/11457#discussion_r754712726
########## 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: the issue with doing that is that you will not get a stack trace that way (I think) -- 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