private boolean isInstanceInFullAutoResources(String instanceName, String dcName,
      boolean resourcesAreFullAutoCompatible) {
    if (!resourcesAreFullAutoCompatible) {
      return false;
    }
    Set<Integer> resourceIds = dcToInstanceToResourceIds.get(dcName).get(instanceName);
    if (resourceIds == null || resourceIds.isEmpty()) {
      info("Instance {} in dc {} doesn't belong to any resource, it might be added to expand a resource", instanceName,
          dcName);
      return true;
    }
    Map<Integer, IdealState> resourceIdToIdealState = dcToResourceIdToIdealState.get(dcName);
    for (int resourceId : resourceIds) {
      if (resourceIdToIdealState.get(resourceId).getRebalanceMode() != IdealState.RebalanceMode.FULL_AUTO) {
        return false;
      }
    }
    return true;
  }
Return true if the instance belongs to resources that are already in FULL_AUTO.
@param instanceName The instance name
@param dcName The dc name
@param resourcesAreFullAutoCompatible True if the resources are already full auto compatible.
@return
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixBootstrapUpgradeUtil.java