ahuang98 commented on code in PR #19545: URL: https://github.com/apache/kafka/pull/19545#discussion_r2056983000
########## metadata/src/main/java/org/apache/kafka/metadata/bootstrap/BootstrapMetadata.java: ########## @@ -117,7 +117,7 @@ public List<ApiMessageAndVersion> records() { } public MetadataVersion metadataVersion() { - return metadataVersion; + return MetadataVersion.fromFeatureLevel(metadataVersionLevel); Review Comment: this seems a bit dangerous - right now we call this when generating activation records and in a data loss scenario/new controller scenario - wouldn't we hit the bug again? -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org