What is UnregisterBroker?
Permanently removes a broker's registration from the KRaft controller during decommissioning. Unlike a normal shutdown (which just stops heartbeats), this cleans up the broker's presence from the metadata log. Use this when a broker will never rejoin, not during routine maintenance.
| Version | Kafka | Changes |
|---|---|---|
| UnregisterBrokerRequest | ||
| v0 | 2.8 | + BrokerId int32~ Flexible encoding enabled FLEXIBLE |
| UnregisterBrokerResponse | ||
| v0 | 2.8 | + ThrottleTimeMs int32+ ErrorCode int16+ ErrorMessage string~ Flexible encoding enabled FLEXIBLE |