ahuang98 commented on code in PR #19416:
URL: https://github.com/apache/kafka/pull/19416#discussion_r2051102022


##########
metadata/src/main/java/org/apache/kafka/controller/FeatureControlManager.java:
##########
@@ -97,11 +106,30 @@ public FeatureControlManager build() {
                         MetadataVersion.latestProduction().featureLevel()));
                 quorumFeatures = new QuorumFeatures(0, localSupportedFeatures, 
List.of(0));
             }
+            if (kraftVersionAccessor == null) {
+                kraftVersionAccessor = new KRaftVersionAccessor() {
+                    private KRaftVersion version = 
KRaftVersion.LATEST_PRODUCTION;

Review Comment:
   so if for some reason kraftVersionAccessor was not defined, we create a 
default accessor which says the current kraft version is the LATEST_PRODUCTION? 
any reason we don't just throw if the accessor is not assigned - is it just for 
ease of testing?



-- 
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

Reply via email to