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


##########
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:
   As you said, that seems to be inconsistent with the docs for `StorageTool` - 
perhaps we should file an issue to fix that in its own PR.



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