When the client disconnect with the bootstrap server, a KafkaProducer with transactionId endless waits on commitTransaction, the question is the same with below issues:
the reproduce condition you can do it as belows:
3、producer.send(record1);//set the breakpoint here
key step: run the breakpoint above 3 then disconnect the network by manual, 10-20seconds recover the network and continute the program by canceling the breakpoint
I found in 2.1.0 version the modificaiton about the initTransactions method, but the
commitTransaction and abortTransaction method, I think it's the same question with initTransactions...