Skip to content

KAFKA-20395: Support unregistering controllers#22191

Draft
kevin-wu24 wants to merge 6 commits intoapache:trunkfrom
kevin-wu24:KAFKA-20395
Draft

KAFKA-20395: Support unregistering controllers#22191
kevin-wu24 wants to merge 6 commits intoapache:trunkfrom
kevin-wu24:KAFKA-20395

Conversation

@kevin-wu24
Copy link
Copy Markdown
Contributor

@kevin-wu24 kevin-wu24 commented May 1, 2026

What Changed

  • Introduce UnregisterControllerRequest and UnregisterControllerResponse RPC schemas
  • Introduce Admin#unregisterController interface, which the kafka-cluster and kafka-metadata-quorum tools call via the AdminClient to unregister a controller
  • Add controller-side handling for UnregisterControllerRequest
  • Introduce UnregisterControllerRecord metadata record schema + new MetadataVersion IBP_4_4_IV1 to support this feature
  • Add handling for replaying the UnregisterControllerRecord on the active controller and in the Cluster/MetadataDelta to remove unregistered controllers from the MetadataImage
  • Add the kafka-cluster unregister-controller CLI command
  • Add the --unregister flag to the kafka-metadata-quorum remove-controller command

@github-actions github-actions Bot added triage PRs from the community streams core Kafka Broker tools kraft clients labels May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients core Kafka Broker kraft streams tools triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant