-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-18399 Remove ZooKeeper from KafkaApis (1/N): LEADER_AND_ISR
, STOP_REPLICA
, UPDATE_METADATA
#18417
Conversation
LEADER_AND_ISR
, STOP_REPLICA
, UPDATE_METADATA
(1/N)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m1a2st thanks for this patch!
@@ -197,9 +196,6 @@ class KafkaApis(val requestChannel: RequestChannel, | |||
case ApiKeys.FETCH => handleFetchRequest(request) | |||
case ApiKeys.LIST_OFFSETS => handleListOffsetRequest(request) | |||
case ApiKeys.METADATA => handleTopicMetadataRequest(request) | |||
case ApiKeys.LEADER_AND_ISR => handleLeaderAndIsrRequest(request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please use KafkaApis.shouldNeverReceive
to keep the same error message?
@@ -197,9 +196,6 @@ class KafkaApis(val requestChannel: RequestChannel, | |||
case ApiKeys.FETCH => handleFetchRequest(request) | |||
case ApiKeys.LIST_OFFSETS => handleListOffsetRequest(request) | |||
case ApiKeys.METADATA => handleTopicMetadataRequest(request) | |||
case ApiKeys.LEADER_AND_ISR => handleLeaderAndIsrRequest(request) | |||
case ApiKeys.STOP_REPLICA => handleStopReplicaRequest(request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -197,9 +196,6 @@ class KafkaApis(val requestChannel: RequestChannel, | |||
case ApiKeys.FETCH => handleFetchRequest(request) | |||
case ApiKeys.LIST_OFFSETS => handleListOffsetRequest(request) | |||
case ApiKeys.METADATA => handleTopicMetadataRequest(request) | |||
case ApiKeys.LEADER_AND_ISR => handleLeaderAndIsrRequest(request) | |||
case ApiKeys.STOP_REPLICA => handleStopReplicaRequest(request) | |||
case ApiKeys.UPDATE_METADATA => handleUpdateMetadataRequest(request, requestLocal) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -3034,99 +3032,7 @@ class KafkaApisTest extends Logging { | |||
val markersResponse = capturedResponse.getValue | |||
assertEquals(2, markersResponse.errorsByProducerId.size()) | |||
} | |||
|
|||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add unit test to ensure those removed RPC can see correct error?
Thanks for @chia7712 review, In |
Yes, you are right. Removing the handler is fine |
LEADER_AND_ISR
, STOP_REPLICA
, UPDATE_METADATA
(1/N)LEADER_AND_ISR
, STOP_REPLICA
, UPDATE_METADATA
…`STOP_REPLICA`, `UPDATE_METADATA` (#18417) Delete the handlers for LEADER_AND_ISR, STOP_REPLICA, and UPDATE_METADATA. Also, remove the corresponding unit tests in KafkaApisTest. Reviewers: Chia-Ping Tsai <[email protected]>
…`STOP_REPLICA`, `UPDATE_METADATA` (apache#18417) Delete the handlers for LEADER_AND_ISR, STOP_REPLICA, and UPDATE_METADATA. Also, remove the corresponding unit tests in KafkaApisTest. Reviewers: Chia-Ping Tsai <[email protected]>
Jira: https://issues.apache.org/jira/browse/KAFKA-18399
I will deal with these Api handler in this PR
Committer Checklist (excluded from commit message)