ReplicaSealStatus resolveReplicaSealStatus(String partitionName, Collection<String> sealedReplicas,
        Collection<String> partiallySealedReplicas) {
      ReplicaSealStatus replicaSealStatus = ReplicaSealStatus.NOT_SEALED;
      if (clusterMapConfig.clusterMapEnablePartitionOverride && partitionOverrideInfoMap.containsKey(partitionName)) {
        replicaSealStatus = ClusterMapUtils.partitionStateStrToReplicaSealStatus(
            partitionOverrideInfoMap.get(partitionName).get(ClusterMapUtils.PARTITION_STATE));
        if (replicaSealStatus == ReplicaSealStatus.SEALED) {
          return replicaSealStatus;
        }
      } else {
        if (sealedReplicas.contains(partitionName)) {
          return ReplicaSealStatus.SEALED;
        }
      }
      if (partiallySealedReplicas.contains(partitionName)) {
        replicaSealStatus = ReplicaSealStatus.PARTIALLY_SEALED;
      }
      return replicaSealStatus;
    }
Resolve the {@link ReplicaSealStatus} of the replica belonging to the partition with the specified partitionName.
@param partitionName Name of the partition.
@param sealedReplicas {@link Collection} of partition names whose replicas are sealed.
@param partiallySealedReplicas {@link Collection} of partition names whose replicas are partially sealed.
@return ReplicaSealStatus object.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixClusterManager.java