m1a2st commented on code in PR #18845:
URL: https://github.com/apache/kafka/pull/18845#discussion_r1952539978


##########
server-common/src/main/java/org/apache/kafka/server/common/MetadataVersion.java:
##########
@@ -368,7 +320,8 @@ public static MetadataVersion fromVersionString(String 
versionString) {
             key = String.join(".", Arrays.copyOfRange(versionSegments, 0, 
numSegments));
         }
         return Optional.ofNullable(IBP_VERSIONS.get(key)).orElseThrow(() ->
-            new IllegalArgumentException("Version " + versionString + " is not 
a valid version")
+            new IllegalArgumentException("Version " + versionString + " is not 
a valid version. The minimum version is " + MINIMUM_VERSION
+                + " and the maximum version is " + latestTesting())

Review Comment:
   The `FeatureCommand.java` also have same issue, I addressed in same Jira 
https://issues.apache.org/jira/browse/KAFKA-18778



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