This is an automated email from the ASF dual-hosted git repository. vkulichenko pushed a commit to branch ignite-3.0.0-alpha2 in repository https://gitbox.apache.org/repos/asf/ignite-3.git
commit d26631c1602bc6198d4d03775c060a82eedb305f Author: Valentin Kulichenko <valentin.kuliche...@gmail.com> AuthorDate: Thu Jun 24 14:29:36 2021 -0700 IGNITE-14993 - Choose available port out of a range --- .../java/org/apache/ignite/network/internal/netty/NettyServer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/network/src/main/java/org/apache/ignite/network/internal/netty/NettyServer.java b/modules/network/src/main/java/org/apache/ignite/network/internal/netty/NettyServer.java index 2a458a5..a229d41 100644 --- a/modules/network/src/main/java/org/apache/ignite/network/internal/netty/NettyServer.java +++ b/modules/network/src/main/java/org/apache/ignite/network/internal/netty/NettyServer.java @@ -43,6 +43,9 @@ import org.jetbrains.annotations.TestOnly; * Netty server channel wrapper. */ public class NettyServer { + /** Port range. */ + private static final int PORT_RANGE = 100; + /** A lock for start and stop operations. */ private final Object startStopLock = new Object();