private DiskId findDiskWithReplicas(List<ReplicaId> expectedReplicas) {
    for (Map.Entry<DiskId, Set<String>> entry : foundDiskToPartitionMap.entrySet()) {
      DiskId currentDisk = entry.getKey();
      Set<String> partitions = entry.getValue();
      boolean found = true;
      for (ReplicaId replica : expectedReplicas) {
        String partitionID = replica.getPartitionId().toPathString();
        if(!partitions.contains(partitionID)) {
          found = false;
          break;
        }
      }
      if(found) {
        return currentDisk;
      }
    }
    return null;
  }
Find the disk that contains the expected replicas.
@param expectedReplicas A list of replicas that should be on the disk.
@return The disk that contains the expected replicas, or null if no such disk was found.
ambry-store/src/main/java/com/github/ambry/store/ReplicaPlacementValidator.java