DefaultKafkaProducerFactory with transactionIdPrefix endless waits when bootstrap server is down

寵の児 提交于 2019-12-06 13:15:51

It's caused by the factory calling initTransactions() on the producer after creating it, for example if there are not enough brokers to support the transaction log replication factor.

I don't know why the timeouts don't apply to that operation.

We could probably change the factory to defer the initTransactions() until the first beginTransaction() - but that will just push the problem downstream.

I tested with the kafka 1.0.0 client (which can be used with 1.3.1 or higher - currently 1.3.2) and it's still a problem there. I think it should honor the TRANSACTION_TIMEOUT_CONFIG but it appears not to.

I suggest opening an issue on the Kafka JIRA.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!