Affects Version/s: 0.11.0.0, 0.11.0.1
Fix Version/s: None
I have found some intermittent failures on travis when using Kafka 0.11 transactions for writing. One of them is a apparent deadlock with the following stack trace:
I was unsuccessful to reproduce it locally, however I think I can semi reliably reproduce it on Travis. Scenario includes simultaneous sequence of instantiating new producers, calling KafkaProducer.initTransactions, closing them interleaved with writing. I have created a stripped down version of this scenario as a github project:
The code for the test scenario is here:
I have defined 30 build profiles that run this test and in case of detecting a dead lock (5 minutes period of inactivity), stack trace of all threads is being printed out. Example travis run:
as you can see deadlock occurred in 7 out of 30 builds. It seems like in this scenario all of them are failing/dead locking in exactly same way.
I have observed this issue both on 0.11.0.0 and 0.11.0.1