sashapolo commented on code in PR #7483:
URL: https://github.com/apache/ignite-3/pull/7483#discussion_r2735832295


##########
modules/network/src/main/java/org/apache/ignite/internal/network/StaticNodeFinder.java:
##########
@@ -44,19 +44,50 @@
  */
 public class StaticNodeFinder implements NodeFinder {
     private static final IgniteLogger LOG = 
Loggers.forClass(StaticNodeFinder.class);
+
     private static final long RETRY_WAIT_BASE_MILLIS = 500;
-    private static final int MAX_TRIES = 3;
 
     /** List of seed cluster members. */
-    private final List<NetworkAddress> addresses;
+    private final Set<NetworkAddress> addresses;
+
+    private final int nameResolutionAttempts;
+
+    private final HostNameResolver hostNameResolver;
+
+    /**
+     * Class for resolving host names.
+     *
+     * <p>Needed for writing cleaner tests.
+     */
+    @FunctionalInterface
+    public interface HostNameResolver {
+        /**
+         * Given the name of a host, returns an array of its IP addresses, 
based on the configured name service on the system.
+         */
+        InetAddress[] getAllByName(String host) throws UnknownHostException;
+    }
 
     /**
      * Constructor.
      *
      * @param addresses Addresses of initial cluster members.
      */
+    @TestOnly

Review Comment:
   I thought about that but was too lazy



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