rmatharu commented on a change in pull request #1297: SAMZA-2379: Support 
Container Placements for job running in degraded state 
URL: https://github.com/apache/samza/pull/1297#discussion_r389040864
 
 

 ##########
 File path: 
samza-core/src/main/java/org/apache/samza/clustermanager/SamzaApplicationState.java
 ##########
 @@ -110,7 +110,17 @@
    */
   public final ConcurrentMap<String, SamzaResource> runningProcessors = new 
ConcurrentHashMap<>(0);
 
-   /**
+  /**
+   *  Map of the failed Samza processor ID to resource status of the last 
attempted of the container.
+   *  This map is only used when {@link 
org.apache.samza.config.ClusterManagerConfig#CLUSTER_MANAGER_CONTAINER_FAIL_JOB_AFTER_RETRIES}
+   *  is set to false, this map tracks the containers which have exhausted all 
retires for restart and JobCoordinator is
+   *  no longer attempting to restart this container
+   *
+   *  Modified by both the AMRMCallbackThread and the ContainerAllocator thread
+   */
+  public final ConcurrentHashMap<String, SamzaResourceStatus> failedProcessors 
= new ConcurrentHashMap<>(0);
 
 Review comment:
   As long as we use one of the two. 
   Its also used by YarnClusterResourceManager for updating "completed" 
containers, 
   which are containers that exit after finishing gracefully.

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