gongxuanzhang commented on code in PR #16658:
URL: https://github.com/apache/kafka/pull/16658#discussion_r1710831788


##########
core/src/test/scala/integration/kafka/admin/AdminFenceProducersIntegrationTest.scala:
##########
@@ -107,6 +108,37 @@ class AdminFenceProducersIntegrationTest extends 
IntegrationTestHarness {
     assertThrows(classOf[ProducerFencedException], () => 
producer.commitTransaction())
   }
 
+  @ParameterizedTest
+  @ValueSource(strings = Array("zk", "kraft"))
+  def testFenceProducerTimeoutMs(quorum: String): Unit = {
+    producer.initTransactions()
+    producer.beginTransaction()
+    producer.send(record).get()
+    producer.commitTransaction()
+    def timeoutOption = new FenceProducersOptions()
+    try {
+      adminClient.fenceProducers(Collections.singletonList(txnId), 
timeoutOption.timeoutMs(0)).all().get()

Review Comment:
   i'm sorry that i forget that



-- 
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

Reply via email to