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

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/ResourceManager.java
 ##########
 @@ -153,6 +160,34 @@
         */
        private CompletableFuture<Void> clearStateFuture = 
CompletableFuture.completedFuture(null);
 
+       public ResourceManager(
+               RpcService rpcService,
+               String resourceManagerEndpointId,
+               ResourceID resourceId,
+               HighAvailabilityServices highAvailabilityServices,
+               HeartbeatServices heartbeatServices,
+               SlotManager slotManager,
+               MetricRegistry metricRegistry,
+               JobLeaderIdService jobLeaderIdService,
+               ClusterInformation clusterInformation,
+               FatalErrorHandler fatalErrorHandler,
+               JobManagerMetricGroup jobManagerMetricGroup) {
+               this(
+                       rpcService,
+                       resourceManagerEndpointId,
+                       resourceId,
+                       highAvailabilityServices,
+                       heartbeatServices,
+                       slotManager,
+                       metricRegistry,
+                       jobLeaderIdService,
+                       clusterInformation,
+                       fatalErrorHandler,
+                       jobManagerMetricGroup,
+                       new TimestampBasedFailureRater(-1, Time.of(1, 
TimeUnit.MINUTES))
+               );
+       }
 
 Review comment:
   Please remove this constructor. Instead please pass in the proper 
`FailureRater` when creating the `ResourceManager`.

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


With regards,
Apache Git Services

Reply via email to