mumrah commented on code in PR #12050:
URL: https://github.com/apache/kafka/pull/12050#discussion_r870467175


##########
core/src/main/scala/kafka/tools/StorageTool.scala:
##########
@@ -70,13 +47,17 @@ object StorageTool extends Logging {
         case "format" =>
           val directories = configToLogDirectories(config.get)
           val clusterId = namespace.getString("cluster_id")
+          val metadataVersion = getMetadataVersion(namespace)
+          if (metadataVersion.isLessThan(MetadataVersion.IBP_3_0_IV0)) {
+            throw new TerseFailure(s"Cannot specify a metadata version less 
than ${MetadataVersion.IBP_3_0_IV0.featureLevel()}.")

Review Comment:
   Good idea, I'll add this.



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