private void addToAllocatedResourceList(String host, SamzaResource samzaResource) {
    List<SamzaResource> samzaResources = allocatedResources.get(host);
    if (samzaResources != null) {
      samzaResources.add(samzaResource);
    } else {
      samzaResources = new ArrayList<>();
      samzaResources.add(samzaResource);
      allocatedResources.put(host, samzaResources);
    }
  }
The RM may allocate more containers on a given host than requested. In such a case, even though the
requestCount != 0, it will be greater than the total request count for that host. Hence, it should be
assigned to ANY_HOST
samza-core/src/main/java/org/apache/samza/clustermanager/ResourceRequestState.java