KAFKA-13228; Ensure ApiVersionRequest is properly handled KRaft co-resident mode (#11784)
When brokers are co-resident with controllers using kraft, we incorrectly determine the supported API versions on the controller using `NodeApiVersions.create()`. The patch fixes the problem by using the versions from the sent `ApiVersions` request even when connecting to the local node. The patch also improves integration tests by adding support for co-resident mode. Reviewers: Justine Olshan <jolshan@confluent.io>, Jason Gustafson <jason@confluent.io>
显示
- core/src/main/scala/kafka/server/AlterPartitionManager.scala 2 个添加, 3 个删除core/src/main/scala/kafka/server/AlterPartitionManager.scala
- core/src/main/scala/kafka/server/BrokerServer.scala 27 个添加, 22 个删除core/src/main/scala/kafka/server/BrokerServer.scala
- core/src/main/scala/kafka/server/BrokerToControllerChannelManager.scala 1 个添加, 5 个删除...scala/kafka/server/BrokerToControllerChannelManager.scala
- core/src/main/scala/kafka/server/KafkaConfig.scala 5 个添加, 1 个删除core/src/main/scala/kafka/server/KafkaConfig.scala
- core/src/main/scala/kafka/server/KafkaServer.scala 11 个添加, 8 个删除core/src/main/scala/kafka/server/KafkaServer.scala
- core/src/test/java/kafka/test/ClusterTestExtensionsTest.java 4 个添加, 0 个删除core/src/test/java/kafka/test/ClusterTestExtensionsTest.java
- core/src/test/java/kafka/test/annotation/Type.java 10 个添加, 3 个删除core/src/test/java/kafka/test/annotation/Type.java
- core/src/test/java/kafka/test/junit/RaftClusterInvocationContext.java 7 个添加, 4 个删除...t/java/kafka/test/junit/RaftClusterInvocationContext.java
- core/src/test/java/kafka/testkit/KafkaClusterTestKit.java 34 个添加, 9 个删除core/src/test/java/kafka/testkit/KafkaClusterTestKit.java
- core/src/test/java/kafka/testkit/TestKitNodes.java 23 个添加, 2 个删除core/src/test/java/kafka/testkit/TestKitNodes.java
- core/src/test/scala/unit/kafka/admin/LeaderElectionCommandTest.scala 1 个添加, 1 个删除...st/scala/unit/kafka/admin/LeaderElectionCommandTest.scala
- core/src/test/scala/unit/kafka/server/ApiVersionsRequestTest.scala 1 个添加, 1 个删除...test/scala/unit/kafka/server/ApiVersionsRequestTest.scala
- core/src/test/scala/unit/kafka/server/BrokerMetricNamesTest.scala 1 个添加, 1 个删除.../test/scala/unit/kafka/server/BrokerMetricNamesTest.scala
- core/src/test/scala/unit/kafka/server/ClientQuotasRequestTest.scala 1 个添加, 1 个删除...est/scala/unit/kafka/server/ClientQuotasRequestTest.scala
加载中
想要评论请 注册 或 登录