private Map<String, Map<String, Map<String, String>>> generatePartitionOverrideFromClusterMap() {
    Map<String, Map<String, String>> partitionOverrideInfos = new HashMap<>();
    for (PartitionId partitionId : staticClusterMap.getAllPartitionIds(null)) {
      String partitionName = partitionId.toPathString();
      Map<String, String> partitionProperties = new HashMap<>();
      partitionProperties.put(PARTITION_STATE, ClusterMapUtils.partitionStateToStr(partitionId.getPartitionState()));
      partitionOverrideInfos.put(partitionName, partitionProperties);
    }
    Map<String, Map<String, Map<String, String>>> partitionOverrideByDc = new HashMap<>();
    for (String dc : dataCenterToZkAddress.keySet()) {
      partitionOverrideByDc.put(dc, partitionOverrideInfos);
    }
    return partitionOverrideByDc;
  }
Generate the partition override map containing partition state from all datacenters.
@return the constructed partitionOverrideInfos by dc. The format is as follows.

"mapFields": {
   "0": {
     "partitionClass": "max-replicas-all-datacenters", (TODO)
     "state": "RW"
   },
   "1": {
     "partitionClass": "max-replicas-all-datacenters", (TODO)
     "state": "RO"
   }
}
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixBootstrapUpgradeUtil.java