You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/01/29 17:46:22 UTC
[GitHub] [kafka] hachikuji commented on a change in pull request #9994: KAFKA-12248: Add BrokerHeartbeat/BrokerRegistration RPCs for KIP-500
hachikuji commented on a change in pull request #9994:
URL: https://github.com/apache/kafka/pull/9994#discussion_r566987833
##########
File path: clients/src/main/java/org/apache/kafka/common/protocol/ApiKeys.java
##########
@@ -98,7 +98,9 @@
UPDATE_FEATURES(ApiMessageType.UPDATE_FEATURES, false, true),
ENVELOPE(ApiMessageType.ENVELOPE, true, RecordBatch.MAGIC_VALUE_V0, false, true),
FETCH_SNAPSHOT(ApiMessageType.FETCH_SNAPSHOT, false, RecordBatch.MAGIC_VALUE_V0, false, true),
- DESCRIBE_CLUSTER(ApiMessageType.DESCRIBE_CLUSTER);
+ DESCRIBE_CLUSTER(ApiMessageType.DESCRIBE_CLUSTER),
+ BROKER_REGISTRATION(ApiMessageType.BROKER_REGISTRATION, false, RecordBatch.MAGIC_VALUE_V0, false, true),
Review comment:
I think the second flag should be true for both of these. They do require CLUSTER_ACTION.
##########
File path: core/src/main/scala/kafka/server/KafkaApis.scala
##########
@@ -232,6 +232,9 @@ class KafkaApis(val requestChannel: RequestChannel,
case ApiKeys.DESCRIBE_QUORUM => requestHelper.closeConnection(request, util.Collections.emptyMap())
case ApiKeys.FETCH_SNAPSHOT => requestHelper.closeConnection(request, util.Collections.emptyMap())
+ // Handle requests that should have been sent to the KIP-500 controller.
Review comment:
nit: this applies to all of the Raft apis above as well
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org