What is AlterConfigs?
Updates broker or topic configuration, but replaces the entire config, not just the changed keys. Prefer IncrementalAlterConfigs for any new code; AlterConfigs silently resets configs not explicitly included in the request.
| Version | Kafka | Changes |
|---|---|---|
| AlterConfigsRequest | ||
| v0 | 2.2 | + Resources []AlterConfigsResource+ ResourceType int8+ ResourceName string+ Configs []AlterableConfig+ Name string+ Value string+ ValidateOnly bool |
| v1 | 2.2 | is the same as version 0. |
| v2 | 2.8 | ~ Flexible encoding enabled FLEXIBLE enables flexible versions. |
| AlterConfigsResponse | ||
| v0 | 2.2 | + ThrottleTimeMs int32+ Responses []AlterConfigsResourceResponse+ ErrorCode int16+ ErrorMessage string+ ResourceType int8+ ResourceName string |
| v1 | 2.2 | on quota violation brokers send out responses before throttling. |
| v2 | 2.8 | ~ Flexible encoding enabled FLEXIBLE enables flexible versions. |