pnowojski commented on a change in pull request #11541: [FLINK-15416][network] 
add task manager netty client retry mechenism
URL: https://github.com/apache/flink/pull/11541#discussion_r400969700
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/PartitionRequestClientFactory.java
 ##########
 @@ -40,19 +43,27 @@
  * instances.
  */
 class PartitionRequestClientFactory {
+       private static final Logger LOG = 
LoggerFactory.getLogger(PartitionRequestClientFactory.class);
 
        private final NettyClient nettyClient;
 
+       private final int retryNumber;
+
        private final ConcurrentMap<ConnectionID, Object> clients = new 
ConcurrentHashMap<ConnectionID, Object>();
 
        PartitionRequestClientFactory(NettyClient nettyClient) {
+               this(nettyClient, 0);
+       }
+
+       PartitionRequestClientFactory(NettyClient nettyClient, int retryNumber) 
{
                this.nettyClient = nettyClient;
+               this.retryNumber = retryNumber;
        }
 
-       /**
-        * Atomically establishes a TCP connection to the given remote address 
and
-        * creates a {@link NettyPartitionRequestClient} instance for this 
connection.
-        */
+               /**
+                * Atomically establishes a TCP connection to the given remote 
address and
+                * creates a {@link NettyPartitionRequestClient} instance for 
this connection.
+                */
 
 Review comment:
   revert indentation?

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


With regards,
Apache Git Services

Reply via email to