chia7712 commented on code in PR #18844:
URL: https://github.com/apache/kafka/pull/18844#discussion_r1965419552


##########
core/src/main/scala/kafka/docker/KafkaDockerWrapper.scala:
##########
@@ -52,7 +53,15 @@ object KafkaDockerWrapper extends Logging {
         }
 
         val formatCmd = formatStorageCmd(finalConfigsPath, envVars)
-        StorageTool.main(formatCmd)
+        try {
+          StorageTool.main(formatCmd)
+        } catch {
+          case terseFailure: TerseFailure => if 
(terseFailure.getMessage.contains(QuorumConfig.QUORUM_VOTERS_CONFIG)) {

Review Comment:
   Using string as condition is not stable to me, maybe we should a follow-up 
to ensure that we catch the "correct" exception.



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