What is UpdateFeatures?
Finalizes feature version flags during cluster upgrades via kafka-features.sh. After all brokers support a new feature version, an operator calls this to activate it. Some features (like the new consumer group protocol) are gated behind feature flags and require explicit activation.
| Version | Kafka | Changes |
|---|---|---|
| UpdateFeaturesRequest | ||
| v0 | 2.7 | + timeoutMs int32+ FeatureUpdates []FeatureUpdateKey+ Feature string+ MaxVersionLevel int16+ AllowDowngrade bool~ Flexible encoding enabled FLEXIBLE |
| v1 | 3.3 | + UpgradeType int8+ ValidateOnly bool- AllowDowngrade booladds validate only field. |
| v2 | 4.0 | changes the response to not return feature level results. |
| UpdateFeaturesResponse | ||
| v0 | 2.7 | + ThrottleTimeMs int32+ ErrorCode int16+ ErrorMessage string+ Results []UpdatableFeatureResult+ Feature string+ ErrorCode int16+ ErrorMessage string~ Flexible encoding enabled FLEXIBLE |
| v1 | 3.3 | No changes |
| v2 | 4.0 | - Results []UpdatableFeatureResult |