Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.1
-
None
-
None
Description
I have observed that when a broker fails, the issue with transactional producer hanging while trying to commit and/or abort transaction still persists
Within TransactionalRequestResult.class lines 36-42
while(!completed) { try { this.latch.await(); completed = true; } catch (InterruptedException var3) { } }
this.latch.await() never returns
Reproducible by bringing down kafka broker while transactional producing is sending records
Suggest (1) calling latch.await() with timeout parameter or (2) allow for easier overriding of method by developers to allow them to call await() with a timeout
Attachments
Issue Links
- is duplicated by
-
KAFKA-7763 KafkaProducer with transactionId endless waits when network is disconnection for 10-20s
- Resolved