Jayteeps opened a new pull request, #24275: URL: https://github.com/apache/kafka/pull/24275
Add the `StopMirrorTopics` protocol layer for [KAFKA-21536](https://issues.apache.org/jira/browse/KAFKA-21536), as specified in [KIP-1279](https://cwiki.apache.org/confluence/spaces/KAFKA/pages/406620973/KIP-1279+Cluster+Mirroring). Define the version 0 request/response schemas and wrappers, register the RPC as unstable and forwardable, and add broker/controller handlers. The broker checks `MirrorVersion.isEnabled()` before forwarding. The controller checks the feature flag and `ALTER` permission on the named `CLUSTER_MIRROR`, then returns `UNSUPPORTED_VERSION` until the controller's stop logic is implemented in a later task. Cover serialization, nullable topic selections, error responses, feature gating, forwarding and authorization. Real-cluster tests exercise broker forwarding, direct controller requests, disabled mirroring and unstable API advertisement. This draft includes unmerged prerequisite commits from #24034 and #24112, plus a separate temporary enum/test commit for [KAFKA-21495](https://issues.apache.org/jira/browse/KAFKA-21495). Drop those prerequisite commits once the upstream changes land; the final commit contains the KAFKA-21536 implementation. API key **95** is provisional, using the next available ID on trunk. Please confirm allocation alongside the other Cluster Mirroring RPCs before merging, since the KIP currently leaves the ID as TBD. Co-Authored-By: OpenAI Codex (GPT-6) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
