suez1224 commented on a change in pull request #7356: [FLINK-10868][flink-yarn] 
Enforce maximum TMs failure rate in ResourceManagers
URL: https://github.com/apache/flink/pull/7356#discussion_r252038865
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/ResourceManager.java
 ##########
 @@ -192,7 +235,17 @@ public ResourceManager(
                this.jobManagerRegistrations = new HashMap<>(4);
                this.jmResourceIdRegistrations = new HashMap<>(4);
                this.taskExecutors = new HashMap<>(8);
-               infoMessageListeners = new ConcurrentHashMap<>(8);
+               this.infoMessageListeners = new ConcurrentHashMap<>(8);
+               this.failureInterval = failureInterval;
+               this.maximumFailureTaskExecutorPerInternal = 
maxFailurePerInterval;
+
+               if (maximumFailureTaskExecutorPerInternal > 0) {
+                       this.taskExecutorFailureTimestamps = new 
ArrayDeque<>(maximumFailureTaskExecutorPerInternal);
 
 Review comment:
   How about 0? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

Reply via email to