mumrah opened a new pull request, #12182: URL: https://github.com/apache/kafka/pull/12182
Now that `metadata.version` has been integrated with the controller #12050, we need to make use of the dynamic nature of the feature flag. This patch adds a supplier that is passed down to ReplicationControlManager so that the leader recovery feature can be toggled on/off. IBP/MetadataVersion 3.2 added the `LeaderRecoveryState` tagged field to PartitionRecord. If we are downgrading from 3.2 to 3.0, the downgrade of the feature flag will cause the active controller to stop populating this field, but the value will still be present in existing records. However, since this is a tagged field, it won't cause any compatibility problems when we actually downgrade the server binaries (the tagged field will just be ignored). -- 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]
