kevin-wu24 commented on code in PR #20551:
URL: https://github.com/apache/kafka/pull/20551#discussion_r2368783876


##########
metadata/src/main/java/org/apache/kafka/metadata/storage/Formatter.java:
##########
@@ -348,20 +352,20 @@ private short effectiveKRaftFeatureLevel(Optional<Short> 
configuredKRaftVersionL
             if (configuredKRaftVersionLevel.get() == 0) {
                 if (hasDynamicQuorum()) {
                     throw new FormatterException(
-                        "Cannot set kraft.version to " +
-                        configuredKRaftVersionLevel.get() +
-                        " if one of the flags --standalone, 
--initial-controllers, or --no-initial-controllers is used. " +
+                        "Cannot set kraft.version to " + 
configuredKRaftVersionLevel.get() +
+                        " if controller.quorum.voters is empty and one of the 
flags --standalone, " +
+                        "--initial-controllers, or --no-initial-controllers is 
used. " +
                         "For dynamic controllers support, try removing the 
--feature flag for kraft.version."
                     );
                 }
             } else {
                 if (!hasDynamicQuorum()) {
                     throw new FormatterException(
-                        "Cannot set kraft.version to " +
-                        configuredKRaftVersionLevel.get() +
-                        " unless one of the flags --standalone, 
--initial-controllers, or --no-initial-controllers is used. " +
-                        "For dynamic controllers support, try using one of 
--standalone, --initial-controllers, or " +
-                        "--no-initial-controllers."
+                        "Cannot set kraft.version to " + 
configuredKRaftVersionLevel.get() +
+                        " unless controller.quorum.voters is empty and one of 
the flags --standalone, " +
+                        "--initial-controllers, or -no-initial-controllers is 
used. " +

Review Comment:
   Sounds good, will fix



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to