alanlau28 commented on PR #24208: URL: https://github.com/apache/kafka/pull/24208#issuecomment-6919636266
Thanks @AndrewJSchofield! I changed `change ApiKeys.FETCH.latestVersion()` to `ApiKeys.FETCH.latestVersion(false)` for `ReplicaVerificationTool`. For `MetadataVersion.fetchRequestVersion()`, since there's no version negotiation, there isn't much we can do to make sure the leader and followers have both `enable.unstable.feature.versions=true` and `enable.unstable.api.versions=true`. However, there was a gap you pointed out where `enable.unstable.feature.versions=true` and `enable.unstable.api.versions=false` and the MV responds with the unstable API version even when unstable API versions are not enabled. I think it's practical to use the broker config for unstable api versions to supplement the MV gate for this. in `fetchRequestVersion`, for `IBP_4_5_IV0`, the caller can pass the broker config for unstable api versions as a flag and the return becomes `Math.min(19, ApiKeys.FETCH.latestVersion(unstableApiVersionsEnabled));`. -- 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]
