我切换为测试环境自己搭建的kafka本地事物完全木有问题。
切换到阿里云的kafka以后, 就会在创建Producer的时候,报Cannot create a v0 coordinator
2017-11-06 19:25:06.962 INFO 12040 --- [ main] o.a.k.clients.producer.KafkaProducer : Instantiated a transactional producer.
2017-11-06 19:25:06.962 INFO 12040 --- [ main] o.a.k.clients.producer.KafkaProducer : Overriding the default retries config to the recommended value of 2147483647 since the idempotent producer is enabled.
2017-11-06 19:25:06.962 INFO 12040 --- [ main] o.a.k.clients.producer.KafkaProducer : Overriding the default max.in.flight.requests.per.connection to 1 since idempontence is enabled.
2017-11-06 19:25:06.965 INFO 12040 --- [ main] o.a.kafka.common.utils.AppInfoParser : Kafka version : 0.11.0.0
2017-11-06 19:25:06.965 INFO 12040 --- [ main] o.a.kafka.common.utils.AppInfoParser : Kafka commitId : cb8625948210849f
2017-11-06 19:25:06.965 INFO 12040 --- [ main] o.a.k.c.p.internals.TransactionManager : [TransactionalId my.transaction.73] ProducerId set to -1 with epoch -1
2017-11-06 19:25:07.611 ERROR 12040 --- [ main] c.a.b.service.impl.AmqpServiceImpl : Cannot create a v0 FindCoordinator request because we require features supported only in 1 or later.
org.apache.kafka.common.errors.UnsupportedVersionException: Cannot create a v0 FindCoordinator request because we require features supported only in 1 or later.
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。