cmccabe commented on code in PR #17867:
URL: https://github.com/apache/kafka/pull/17867#discussion_r1849118418


##########
metadata/src/test/java/org/apache/kafka/controller/QuorumControllerIntegrationTestUtils.java:
##########
@@ -75,6 +77,27 @@ static BrokerRegistrationRequestData.FeatureCollection 
brokerFeatures(
         return features;
     }
 
+    /**
+     * Create a broker features collection for use in a registration request. 
MV and given features are included.
+     *
+     * @param minVersion    The minimum supported MV.
+     * @param maxVersion    The maximum supported MV.
+     * @param featureList   Other features to add.
+     */
+    static BrokerRegistrationRequestData.FeatureCollection 
brokerFeaturesPlusFeatureVersions(

Review Comment:
   seems a bit awkward to use. can we just have a function parameter like a map 
from feature name to max version (and then assume that min versions are all 0?)



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