首页 > 解决方案 > Apache kafka 的 inter.broker.protocol.version 中的后缀

问题描述

在滚动升级 Kafka 代理时,我发现官方文档说的不匹配。

默认值为inter.broker.protocol.version=2.3-IV1,

https://kafka.apache.org/documentation/#upgrade_2_3_0说设置inter.broker.protocol.version=2.3

2.3-IV1使用和有什么区别2.3吗?

标签: apache-kafka

解决方案


通过查看代码,2.3 将是 2.3-IV0(参见https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/api/ApiVersion.scala#L305)和2.3-IV0 和 IV1 之间的区别是Add rack_id to FetchRequest, preferred_read_replica to FetchResponse, and replica_id to OffsetsForLeaderRequest- 根据此评论


推荐阅读