jsancio commented on code in PR #15986:
URL: https://github.com/apache/kafka/pull/15986#discussion_r1611946739


##########
raft/src/main/java/org/apache/kafka/raft/QuorumConfig.java:
##########
@@ -231,4 +266,26 @@ public String toString() {
             return "non-empty list";
         }
     }
+
+    public static class ControllerQuorumBootstrapServersValidator implements 
ConfigDef.Validator {
+        @Override
+        public void ensureValid(String name, Object value) {
+            if (value == null) {
+                throw new ConfigException(name, null);
+            }
+
+            @SuppressWarnings("unchecked")
+            List<String> entries = (List<String>) value;
+
+            // Attempt to parse the connect strings
+            for (String entry : entries) {
+                QuorumConfig.parseBootstrapServer(entry);

Review Comment:
   Fixed.



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