aloknnikhil commented on a change in pull request #9985:
URL: https://github.com/apache/kafka/pull/9985#discussion_r566379088



##########
File path: raft/src/main/java/org/apache/kafka/raft/RaftConfig.java
##########
@@ -89,8 +92,23 @@
     private final int appendLingerMs;
     private final Map<Integer, AddressSpec> voterConnections;
 
-    public static abstract class AddressSpec {
-       public abstract InetSocketAddress address();
+    public interface AddressSpec {
+    }
+
+    public static class InetAddressSpec implements AddressSpec {
+        public final InetSocketAddress address;
+
+        public InetAddressSpec(InetSocketAddress address) {
+            if (address.equals(NON_ROUTABLE_ADDRESS)) {

Review comment:
       Good catch! Added




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to