@Override
  public boolean hasEnoughEligibleReplicasAvailableForPut(PartitionId partitionId, int requiredEligibleReplicaCount,
      boolean checkLocalDcOnly) {
    boolean helixHasEnoughEligible =
        helixClusterManager.hasEnoughEligibleReplicasAvailableForPut(partitionId, requiredEligibleReplicaCount,
            checkLocalDcOnly);
    if (check) {
      boolean staticHasEnoughEligible =
          staticClusterManager.hasEnoughEligibleReplicasAvailableForPut(partitionId, requiredEligibleReplicaCount,
              checkLocalDcOnly);
      if (helixHasEnoughEligible != staticHasEnoughEligible) {
        String staticLogStr = staticHasEnoughEligible ? "has" : "doesn't have";
        String helixLogStr = staticHasEnoughEligible ? "doesn't have" : "has";
        logger.warn(
            "Partition {} {} enough eligible replicas for put in static cluster map, but {} enough eligible replicas for put in helix cluster map.",
            partitionId, staticLogStr, helixLogStr);
      }
    }
    return helixHasEnoughEligible;
  }
Relay the event to both the underlying {@link StaticClusterManager} and the underlying {@link HelixClusterManager}.
@param replicaId the {@link ReplicaId} for which this event has occurred.
@param event the {@link ReplicaEventType}.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/CompositeClusterManager.java