cmccabe commented on code in PR #12050: URL: https://github.com/apache/kafka/pull/12050#discussion_r875109535
########## core/src/main/scala/kafka/tools/StorageTool.scala: ########## @@ -231,6 +252,10 @@ object StorageTool extends Logging { val metaPropertiesPath = Paths.get(directory, "meta.properties") val checkpoint = new BrokerMetadataCheckpoint(metaPropertiesPath.toFile) checkpoint.write(metaProperties.toProperties) + + val bootstrapMetadata = BootstrapMetadata.create(metadataVersion) Review Comment: should we write this first, so that if it fails, we don't have a valid directory? -- 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