jolshan commented on code in PR #17698:
URL: https://github.com/apache/kafka/pull/17698#discussion_r1848880463
##########
core/src/test/java/kafka/admin/AdminFenceProducersTest.java:
##########
@@ -97,9 +97,11 @@ void testFenceAfterProducerCommit() throws Exception {
ExecutionException.class,
() -> producer.send(RECORD).get(), "expected
ProducerFencedException"
);
- assertInstanceOf(ProducerFencedException.class,
exceptionDuringSend.getCause());
Review Comment:
Ok -- this is because we were adapting the error to be the expected error
for produce. I guess we won't see producer fenced errors for any request except
for endtxn, txn offset commit with tv2 (this is ok, just interesting to note)
--
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]