jolshan commented on code in PR #12501: URL: https://github.com/apache/kafka/pull/12501#discussion_r950319828
########## core/src/test/scala/integration/kafka/api/TransactionsExpirationTest.scala: ########## @@ -97,6 +111,9 @@ class TransactionsExpirationTest extends KafkaServerTestHarness { producer.send(TestUtils.producerRecordWithExpectedTransactionStatus(topic1, 3, "3", "3", willBeCommitted = true)) producer.commitTransaction() + val describeState2 = admin.describeTransactions(Collections.singletonList("transactionalProducer")).description("transactionalProducer") + TestUtils.waitUntilTrue(() => describeState2.isDone, "Transactional state was never added.") Review Comment: I didn't know if it was really that much better to make a helper if it was only used 2 times. but if we think its worth it we can. -- 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