jolshan commented on code in PR #13591: URL: https://github.com/apache/kafka/pull/13591#discussion_r1228729149
########## clients/src/test/java/org/apache/kafka/clients/producer/internals/TransactionManagerTest.java: ########## @@ -3405,6 +3405,59 @@ MAX_REQUEST_SIZE, ACKS_ALL, MAX_RETRIES, new SenderMetricsRegistry(new Metrics(t assertEquals(1, transactionManager.sequenceNumber(tp1).intValue()); } + @Test + public void testBackgroundInvalidStateTransitionIsFatal() { + doInitTransactions(); + assertTrue(transactionManager.isTransactional()); + + transactionManager.setPoisonStateOnInvalidTransition(true); Review Comment: This works because we create a new transactionManager object per run of the test (ie, the thread local variable isn't reused between tests) -- 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