cmccabe commented on code in PR #19205: URL: https://github.com/apache/kafka/pull/19205#discussion_r1994094571
########## metadata/src/main/java/org/apache/kafka/controller/FeatureControlManager.java: ########## @@ -370,6 +371,10 @@ public void replay(FeatureLevelRecord record) { MetadataVersion mv = MetadataVersion.fromFeatureLevel(record.featureLevel()); metadataVersion.set(Optional.of(mv)); log.info("Replayed a FeatureLevelRecord setting metadata.version to {}", mv); + } else if (record.name().equals(KRaftVersion.FEATURE_NAME)) { + // Skip any feature level record for kraft.version. This has two benefits: + // 1. It removes from snapshots any FeatureLevelRecord for kraft.version that was incorrectly written to the log Review Comment: can you add a reference to this JIRA in this comment? -- 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