ijuma commented on code in PR #18845: URL: https://github.com/apache/kafka/pull/18845#discussion_r1951022774
########## server-common/src/main/java/org/apache/kafka/server/common/MetadataVersion.java: ########## @@ -378,7 +331,8 @@ public static MetadataVersion fromFeatureLevel(short version) { return metadataVersion; } } - throw new IllegalArgumentException("No MetadataVersion with feature level " + version); + throw new IllegalArgumentException("No MetadataVersion with feature level " + version + ". Valid feature levels are from " + + MINIMUM_VERSION.featureLevel + " to " + latestTesting().featureLevel + "."); Review Comment: The code actually considers all metadata values - the error message s consistent with that. -- 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