edoardocomar commented on PR #16229:
URL: https://github.com/apache/kafka/pull/16229#issuecomment-2160183980
> I'm curious if we could commit such a transaction in this state, but maybe
this is good enough.
Yes, easy to test.
If I reinstate the client handling of ignoring the concurrent txn error,
and remove the assertions from the test , then I can run
```
def testFenceAfterProducerCommit(quorum: String): Unit = {
producer.initTransactions()
producer.beginTransaction()
producer.send(record).get()
producer.commitTransaction()
adminClient.fenceProducers(Collections.singletonList(txnId)).all().get()
producer.beginTransaction()
producer.send(record).get()
producer.commitTransaction()
}
```
and it 'passes', i.e. completes without exceptions, very often in zk mode
and occasionally in kraft.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]